mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate.
Follow up to 3f7b327562.
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user