1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Added ordering to fix non-deterministic relatedapp test.

This commit is contained in:
Tim Graham 2014-09-29 08:50:36 -04:00
parent 4b257cf261
commit df578bf175

View File

@ -21,9 +21,9 @@ class RelatedGeoModelTest(TestCase):
def test02_select_related(self):
"Testing `select_related` on geographic models (see #7126)."
qs1 = City.objects.all()
qs2 = City.objects.select_related()
qs3 = City.objects.select_related('location')
qs1 = City.objects.order_by('id')
qs2 = City.objects.order_by('id').select_related()
qs3 = City.objects.order_by('id').select_related('location')
# Reference data for what's in the fixtures.
cities = (