0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Removed hardcoded pks in TestQuerying.test_group_by_order_by_aliases test.

This commit is contained in:
Mariusz Felisiak 2022-10-07 08:26:41 +02:00 committed by GitHub
parent abc5ca6ab4
commit 749cd83e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")