mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Relaxed some query ordering assertions in tests.
It accounts for differences seen on cockroachdb.
This commit is contained in:
parent
5e2839f320
commit
9100c664db
3 changed files with 3 additions and 3 deletions
|
@ -440,7 +440,7 @@ class AggregateTestCase(TestCase):
|
|||
def test_fkey_aggregate(self):
|
||||
explicit = list(Author.objects.annotate(Count('book__id')))
|
||||
implicit = list(Author.objects.annotate(Count('book')))
|
||||
self.assertEqual(explicit, implicit)
|
||||
self.assertCountEqual(explicit, implicit)
|
||||
|
||||
def test_annotate_ordering(self):
|
||||
books = Book.objects.values('rating').annotate(oldest=Max('authors__age')).order_by('oldest', 'rating')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue