Skip to content

Commit

Permalink
tests: Fix flaky test
Browse files Browse the repository at this point in the history
pytest tests/www/search/tests.py::TestSearchCompany::test_is_searchable
--randomly-seed=3787113181
  • Loading branch information
tonial committed Nov 15, 2024
1 parent 60f1718 commit ac7ad62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/www/search/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ def test_is_searchable(self, client):
html=True,
count=1,
)
assertContains(response, searchable_company.display_name)
assertNotContains(response, unsearchable_company.display_name)
assertContains(response, f"<h3>{searchable_company.display_name}</h3>")
assertNotContains(response, f"<h3>{unsearchable_company.display_name}</h3>")

def test_results_links_from_job_seeker_list(self, client):
"""
Expand Down

0 comments on commit ac7ad62

Please sign in to comment.