diff options
| author | Simon Charette <charette.s@gmail.com> | 2025-05-23 01:00:29 -0400 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-05-23 11:19:31 +0200 |
| commit | ec7f0bcf79dec7412d00d48e43c995a45b3b7b70 (patch) | |
| tree | 50dd0c05c333410a83fba4e0e30a4485bd96fdd5 | |
| parent | 1704c49a9b149b66b6a0e67abc8c95293bc35649 (diff) | |
Refs #35444 -- Adjusted multi-args distinct aggregate test ordering expectations.
Unless an explicit order_by is specified for the test the ordering of the
aggregation results is undefined.
| -rw-r--r-- | tests/aggregation/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index db61716e2e..6d284da63d 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -576,7 +576,7 @@ class AggregateTestCase(TestCase): books = Book.objects.aggregate( ratings=StringAgg(Cast(F("rating"), CharField()), Value(","), distinct=True) ) - self.assertEqual(books["ratings"], "3,4,4.5,5") + self.assertCountEqual(books["ratings"].split(","), ["3", "4", "4.5", "5"]) @skipIfDBFeature("supports_aggregate_distinct_multiple_argument") def test_raises_error_on_multiple_argument_distinct(self): |
