Loading tests/fixtures_migration/tests.py +5 −2 Original line number Diff line number Diff line 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 Loading @@ -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( Loading @@ -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( Loading Loading
tests/fixtures_migration/tests.py +5 −2 Original line number Diff line number Diff line 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 Loading @@ -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( Loading @@ -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( Loading