From 749cd83e1356740f940613f12b609f078097f252 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 7 Oct 2022 08:26:41 +0200 Subject: [PATCH] Removed hardcoded pks in TestQuerying.test_group_by_order_by_aliases test. --- tests/postgres_tests/test_array.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index dff9a651c3..c23ed9fe0c 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -421,9 +421,9 @@ class TestQuerying(PostgreSQLTestCase): .annotate(arrayagg=ArrayAgg("id")) .order_by("field__0"), [ - {"field__0": 1, "arrayagg": [1]}, - {"field__0": 2, "arrayagg": [2, 3]}, - {"field__0": 20, "arrayagg": [4]}, + {"field__0": 1, "arrayagg": [self.objs[0].pk]}, + {"field__0": 2, "arrayagg": [self.objs[1].pk, self.objs[2].pk]}, + {"field__0": 20, "arrayagg": [self.objs[3].pk]}, ], ) alias = connection.ops.quote_name("field__0")