Skip to content

Commit

Permalink
fix tests in Django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Jul 14, 2024
1 parent 212bc48 commit 18da849
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin_tools_stats/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ def assertContainsAny(
):
total_count = 0
for text in texts:
text_repr, real_count, msg_prefix = self._assert_contains(
args = self._assert_contains(
response, text, status_code, msg_prefix, html
)
real_count = args[1]
msg_prefix = args[2]
total_count += real_count

self.assertTrue(total_count != 0, f"None of the {texts} were found in the response: {response}")

0 comments on commit 18da849

Please sign in to comment.