summaryrefslogtreecommitdiff
path: root/tests/expressions_window
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-11-18 06:32:37 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-11-18 12:32:37 +0100
commit9100c664db5cca7512947e23d588cfcb937a7a92 (patch)
tree18a97cf4d7d137bf492f78c592df5839d9e8d08f /tests/expressions_window
parent5e2839f3207a02c05b96d761b2441d1ef4d920d4 (diff)
Relaxed some query ordering assertions in tests.
It accounts for differences seen on cockroachdb.
Diffstat (limited to 'tests/expressions_window')
-rw-r--r--tests/expressions_window/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/expressions_window/tests.py b/tests/expressions_window/tests.py
index 8102ffe621..580d038e29 100644
--- a/tests/expressions_window/tests.py
+++ b/tests/expressions_window/tests.py
@@ -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},