summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-07 08:26:41 +0200
committerGitHub <noreply@github.com>2022-10-07 08:26:41 +0200
commit749cd83e1356740f940613f12b609f078097f252 (patch)
tree72d55a92bc2ca885baee7617108969a4a7f704de /tests/postgres_tests/test_array.py
parentabc5ca6ab4717d690255583ac18a05d742746f93 (diff)
downloaddjango-749cd83e1356740f940613f12b609f078097f252.tar.gz
Removed hardcoded pks in TestQuerying.test_group_by_order_by_aliases test.
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r--tests/postgres_tests/test_array.py6
1 files 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")