Skip to content

Commit

Permalink
fix(tests): Lint and test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
flooie committed Jan 14, 2025
1 parent 9ea2169 commit 6507d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eyecite/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def filter_citations(citations: List[CitationBase]) -> List[CitationBase]:
:param citations: List of citation`
:return: Sorted and filtered citations
"""
filtered_citations = []
filtered_citations: List[CitationBase] = []
sorted_citations = sorted(citations, key=lambda citation: citation.span())
for citation in sorted_citations:
if filtered_citations:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_FindTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def test_find_citations(self):
[case_citation(page='657', reporter="F.2d", volume="909",
metadata={'plaintiff': 'U.S.', 'defendant': 'Boch Oldsmobile, Inc.', 'pin_cite': '660'}),
case_citation(volume="454", page='241', reporter_found='U.S.', short=True,
metadata={'antecedent_guess': 'Aircraft', 'court': "scotus", 'pin_cite': None})]),
metadata={'antecedent_guess': 'Aircraft', 'court': "scotus", 'pin_cite': "241"})]),
# Test reference citation after an id citation
('we said in Morton v. Mancari, 417 U. S. 535, 552 (1974) “Literally every piece ....”. “asisovereign tribal entities . . . .” Id. In Mancari at 665',
[case_citation(page='535', year=1974, volume="417",
Expand Down

0 comments on commit 6507d01

Please sign in to comment.