From d795259ea96004df0a2469246229a146307bcd2c Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 7 Oct 2022 13:05:35 +0200 Subject: Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Follow up to 3f7b3275627385f8f7531fca01cdda50d4ec6b6e. --- tests/aggregation/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/aggregation') 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.""" -- cgit v1.3