#32168: Remove serial pk assumptions in aggregation_regress tests
------------------------------------------------+------------------------
Reporter: Tim Graham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Other) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
[https://github.com/cockroachdb/django-cockroachdb CockroachDB] doesn't
use serial pks and some tests fail. Feel free to mention me on your pull
request if you cannot test your changes on CockroachDB.
{{{
======================================================================
FAIL: test_more_more (aggregation_regress.tests.AggregationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tim/code/django/tests/aggregation_regress/tests.py", line
702, in test_more_more
self.assertSequenceEqual(
AssertionError: Sequences differ: <QuerySet [{'pub': 604193433639452673,
'i[145 chars] 1}]> != [{'pub': 604193433675366401, 'id__count':[134
chars]: 1}]
First differing element 0:
{'pub': 604193433639452673, 'id__count': 2}
{'pub': 604193433675366401, 'id__count': 2}
- <QuerySet [{'pub': 604193433639452673, 'id__count': 2}, {'pub':
604193433646432257, 'id__count': 1}, {'pub': 604193433652854785,
'id__count': 2}, {'pub': 604193433659506689, 'id__count': 1}]>
+ [{'id__count': 2, 'pub': 604193433675366401},
+ {'id__count': 1, 'pub': 604193433690800129},
+ {'id__count': 2, 'pub': 604193433704824833},
+ {'id__count': 1, 'pub': 604193433718816769}]
======================================================================
FAIL: test_more_more_more (aggregation_regress.tests.AggregationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tim/code/django/tests/aggregation_regress/tests.py", line
880, in test_more_more_more
self.assertEqual(
AssertionError: Lists differ: [] != ['Apress', 'Sams']
Second list contains 2 additional elements.
First extra element 0:
'Apress'
- []
+ ['Apress', 'Sams']
======================================================================
FAIL: test_ticket_11293 (aggregation_regress.tests.AggregationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tim/code/django/tests/aggregation_regress/tests.py", line
1452, in test_ticket_11293
self.assertQuerysetEqual(
File "/home/tim/code/django/django/test/testcases.py", line 1053, in
assertQuerysetEqual
return self.assertEqual(list(items), values, msg=msg)
AssertionError: Lists differ: [604193433675366401, 604193433718816769,
604193433732775937, 604193433807945729] != [1, 4, 5, 6]
First differing element 0:
604193433675366401
1
- [604193433675366401, 604193433718816769, 604193433732775937,
604193433807945729]
+ [1, 4, 5, 6]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32168>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.0597b33309aec92745f7084dbd2e8a19%40djangoproject.com.