Skip to content

Commit

Permalink
Merge pull request #4418 from freelawproject/fix-recap-case-name-exac…
Browse files Browse the repository at this point in the history
…t-factory-test

Fixed RECAP Search case_name exact test randomly failing
  • Loading branch information
mlissner authored Sep 5, 2024
2 parents 2b20b2d + fe4ff1f commit f09bca8
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions cl/search/tests/tests_es_recap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2713,6 +2713,8 @@ def test_uses_exact_version_for_case_name_field(self) -> None:
docket=DocketFactory(
court=self.court_2,
case_name="Howell v. Indiana",
case_name_short="Dolor",
case_name_full="Ipsum Dolor",
docket_number="1:21-bk-1235",
source=Docket.RECAP,
),
Expand All @@ -2732,17 +2734,13 @@ def test_uses_exact_version_for_case_name_field(self) -> None:
is_available=False,
pacer_doc_id=None,
)

de_2 = DocketEntryWithParentsFactory(
docket=DocketFactory(
court=self.court_2,
case_name="Howells v. Indiana",
docket_number="1:21-bk-1235",
source=Docket.RECAP,
),
entry_number=1,
date_filed=datetime.date(2015, 8, 19),
description="MOTION for Leave to File Amicus Curiae Lorem Served",
docket_2 = DocketFactory(
court=self.court_2,
case_name="Howells v. Indiana",
case_name_short="Dolor",
case_name_full="Lorem Ipsum",
docket_number="1:21-bk-1235",
source=Docket.RECAP,
)

# case_name filter: Howell
Expand Down Expand Up @@ -2804,7 +2802,7 @@ def test_uses_exact_version_for_case_name_field(self) -> None:
)

de.docket.delete()
de_2.docket.delete()
docket_2.delete()


class RECAPSearchAPICommonTests(RECAPSearchTestCase):
Expand Down

0 comments on commit f09bca8

Please sign in to comment.