diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-14 12:12:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-14 12:12:13 +0200 |
| commit | 1760ad4e8cdbf34a0f38deae300460a0b9c38eac (patch) | |
| tree | 1815c8c1f40069c434fb38e2487036afd64bece5 /tests/expressions | |
| parent | 08f30d1b6ac9b7bc05857f88a70277d5ceb27ba1 (diff) | |
Relaxed some query ordering assertions in various tests.
It accounts for differences seen on MySQL with MyISAM storage engine.
Diffstat (limited to 'tests/expressions')
| -rw-r--r-- | tests/expressions/test_queryset_values.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/expressions/test_queryset_values.py b/tests/expressions/test_queryset_values.py index 0dba623167..80addef37b 100644 --- a/tests/expressions/test_queryset_values.py +++ b/tests/expressions/test_queryset_values.py @@ -73,10 +73,10 @@ class ValuesExpressionsTests(TestCase): def test_values_list_expression(self): companies = Company.objects.values_list("name", F("ceo__salary")) - self.assertSequenceEqual( + self.assertCountEqual( companies, [("Example Inc.", 10), ("Foobar Ltd.", 20), ("Test GmbH", 30)] ) def test_values_list_expression_flat(self): companies = Company.objects.values_list(F("ceo__salary"), flat=True) - self.assertSequenceEqual(companies, (10, 20, 30)) + self.assertCountEqual(companies, (10, 20, 30)) |
