diff options
author | Simon Charette <charette.s@gmail.com> | 2015-11-09 14:13:23 -0500 |
---|---|---|
committer | Simon Charette <charette.s@gmail.com> | 2015-11-14 11:33:28 -0500 |
commit | 406de4c243e3618c13c36c23e07a4aa33162b344 (patch) | |
tree | 298c02fa365274226d403a4b6c6d0837f19af73a /tests/order_with_respect_to | |
parent | e9673c657a23a0c636aab691e28805aa250b0137 (diff) | |
download | django-406de4c243e3618c13c36c23e07a4aa33162b344.tar.gz |
Refs #25745 -- Isolated an order_with_respect_to test.
Diffstat (limited to 'tests/order_with_respect_to')
-rw-r--r-- | tests/order_with_respect_to/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/order_with_respect_to/tests.py b/tests/order_with_respect_to/tests.py index 6c98ee1b9b..8f01660180 100644 --- a/tests/order_with_respect_to/tests.py +++ b/tests/order_with_respect_to/tests.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals from operator import attrgetter +from django.apps.registry import Apps from django.db import models from django.test import TestCase @@ -95,9 +96,11 @@ class OrderWithRespectToTests2(TestCase): self.assertSequenceEqual(p1.get_post_order(), [p1_1.pk, p1_2.pk, p1_3.pk]) def test_duplicate_order_field(self): + test_apps = Apps(['order_with_respect_to']) class Bar(models.Model): class Meta: + apps = test_apps app_label = 'order_with_respect_to' class Foo(models.Model): @@ -106,6 +109,7 @@ class OrderWithRespectToTests2(TestCase): class Meta: order_with_respect_to = 'bar' + apps = test_apps app_label = 'order_with_respect_to' count = 0 |