diff options
| author | Christopher Wang <dev@christopher.wang> | 2020-11-03 22:38:16 -0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-11-04 22:31:57 +0100 |
| commit | 77e93d3b207ec3ea00e75d54f2b65b2cde6dd0a8 (patch) | |
| tree | 102ce63bfc8096c0d08cee496de1259778ad59d6 /tests/aggregation_regress | |
| parent | 18c8ced81e4a6e093c732f8cded3b16426d16952 (diff) | |
Refs #32168 -- Fixed Publisher assertions in AggregationTests.test_more_more.
Refer to Publisher objects instead of Books.
Test regression in 1bf25e9bc6df6c2ae4c0b10fb839e101471e8373.
Diffstat (limited to 'tests/aggregation_regress')
| -rw-r--r-- | tests/aggregation_regress/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/aggregation_regress/tests.py b/tests/aggregation_regress/tests.py index 48187ee00b..29ffe1f058 100644 --- a/tests/aggregation_regress/tests.py +++ b/tests/aggregation_regress/tests.py @@ -701,10 +701,10 @@ class AggregationTests(TestCase): qs = Book.objects.extra(select={'pub': 'publisher_id'}).values('pub').annotate(Count('id')).order_by('pub') self.assertSequenceEqual( qs, [ - {'pub': self.b1.id, 'id__count': 2}, - {'pub': self.b2.id, 'id__count': 1}, - {'pub': self.b3.id, 'id__count': 2}, - {'pub': self.b4.id, 'id__count': 1} + {'pub': self.p1.id, 'id__count': 2}, + {'pub': self.p2.id, 'id__count': 1}, + {'pub': self.p3.id, 'id__count': 2}, + {'pub': self.p4.id, 'id__count': 1}, ], ) |
