mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38: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
|
@ -699,7 +699,7 @@ class WindowFunctionTests(TestCase):
|
|||
highest=Window(FirstValue('id'), partition_by=F('department'), order_by=F('salary').desc())
|
||||
).values('highest')
|
||||
highest_salary = Employee.objects.filter(pk__in=subquery_qs)
|
||||
self.assertSequenceEqual(highest_salary.values('department', 'salary'), [
|
||||
self.assertCountEqual(highest_salary.values('department', 'salary'), [
|
||||
{'department': 'Accounting', 'salary': 50000},
|
||||
{'department': 'Sales', 'salary': 55000},
|
||||
{'department': 'Marketing', 'salary': 40000},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue