summaryrefslogtreecommitdiff
path: root/tests/aggregation
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-07 13:05:35 +0200
committerGitHub <noreply@github.com>2022-10-07 13:05:35 +0200
commitd795259ea96004df0a2469246229a146307bcd2c (patch)
tree96d797dacdb7b4c68cd32afc1f2ed6f15e0a2bcd /tests/aggregation
parent564b317fb53e9925b86ca5ef5d3bbcf99387602c (diff)
downloaddjango-d795259ea96004df0a2469246229a146307bcd2c.tar.gz
Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate.
Follow up to 3f7b3275627385f8f7531fca01cdda50d4ec6b6e.
Diffstat (limited to 'tests/aggregation')
-rw-r--r--tests/aggregation/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py
index ae94af8eaa..be4e557c8f 100644
--- a/tests/aggregation/tests.py
+++ b/tests/aggregation/tests.py
@@ -1687,7 +1687,7 @@ class AggregateTestCase(TestCase):
authors = Author.objects.annotate(
Count("book"),
).filter(Q(book__count__gt=0) | Q(pk__in=Book.objects.values("authors")))
- self.assertQuerysetEqual(authors, Author.objects.all(), ordered=False)
+ self.assertCountEqual(authors, Author.objects.all())
def test_aggregation_random_ordering(self):
"""Random() is not included in the GROUP BY when used for ordering."""