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 2b762fa commit 42f7344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin_tools_stats/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def assertContainsAny(
):
total_count = 0
for text in texts:
text_repr, real_count, msg_prefix = self._assert_contains(
response, text, status_code, msg_prefix, html
)
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 42f7344

Please sign in to comment.