Skip to content

Commit

Permalink
Merge pull request #450 from stopnoanime/master
Browse files Browse the repository at this point in the history
Fix flaky test TestProblemsetFilters::test_filters. Closes #440
  • Loading branch information
stopnoanime authored Jan 9, 2025
2 parents c94ab6d + 8c95e11 commit c4e76d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oioioi/problems/tests/test_problemset.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ def test_filters(self):
self.assertEqual(response.status_code, 200)

for problem in self.problems:
problemTag = f"<td>{problem}</td>"

if problem in filtered:
self.assertContains(response, problem)
self.assertContains(response, problemTag, html=True)
else:
self.assertNotContains(response, problem)
self.assertNotContains(response, problemTag, html=True)

0 comments on commit c4e76d6

Please sign in to comment.