summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-10-27 08:19:20 -0400
committerTim Graham <timograham@gmail.com>2014-10-27 08:19:57 -0400
commitabee4f718e6f08b523fc61fb812ef88d13a2e4b2 (patch)
tree2a5f1525363a4c297aaaeaa936d75664cc899348 /tests
parentaf1c85e851b25c8a340af5973148c2987917a5d2 (diff)
[1.7.x] Fixed stable/1.7.x test failures from refs #23699.
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures_migration/tests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/fixtures_migration/tests.py b/tests/fixtures_migration/tests.py
index c284d09829..9e0aa1b590 100644
--- a/tests/fixtures_migration/tests.py
+++ b/tests/fixtures_migration/tests.py
@@ -1,5 +1,6 @@
-from django.test import TestCase
from django.core import management
+from django.test import TestCase
+from django.test.utils import override_system_checks
from .models import Book
@@ -10,8 +11,9 @@ class TestNoInitialDataLoading(TestCase):
in Django 1.9 when migrations become required and initial data is no longer
supported.
"""
- available_apps = ['django.contrib.auth', 'django.contrib.contenttypes', 'fixtures_migration']
+ available_apps = ['fixtures_migration']
+ @override_system_checks([])
def test_migrate(self):
self.assertQuerysetEqual(Book.objects.all(), [])
management.call_command(
@@ -20,6 +22,7 @@ class TestNoInitialDataLoading(TestCase):
)
self.assertQuerysetEqual(Book.objects.all(), [])
+ @override_system_checks([])
def test_flush(self):
self.assertQuerysetEqual(Book.objects.all(), [])
management.call_command(