diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-26 13:23:38 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-17 09:59:25 -0500 |
| commit | 67235fd4ef1b006fc9cdb2fa20e7bb93b0edff4b (patch) | |
| tree | 7f2cf7cac4185235e3f066caf9ae5854f0f75bdb /tests/fixtures_migration/tests.py | |
| parent | f635d759354842e46901ed1ae1be5f5a0b81e567 (diff) | |
Removed support for initial_data fixtures per deprecation timeline.
Diffstat (limited to 'tests/fixtures_migration/tests.py')
| -rw-r--r-- | tests/fixtures_migration/tests.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/fixtures_migration/tests.py b/tests/fixtures_migration/tests.py deleted file mode 100644 index 1dcc443c85..0000000000 --- a/tests/fixtures_migration/tests.py +++ /dev/null @@ -1,31 +0,0 @@ -from django.test import TransactionTestCase -from django.core import management - -from .models import Book - - -class TestNoInitialDataLoading(TransactionTestCase): - """ - Apps with migrations should ignore initial data. This test can be removed - in Django 1.9 when migrations become required and initial data is no longer - supported. - """ - available_apps = ['fixtures_migration'] - - def test_migrate(self): - self.assertQuerysetEqual(Book.objects.all(), []) - management.call_command( - 'migrate', - verbosity=0, - ) - self.assertQuerysetEqual(Book.objects.all(), []) - - def test_flush(self): - self.assertQuerysetEqual(Book.objects.all(), []) - management.call_command( - 'flush', - verbosity=0, - interactive=False, - load_initial_data=False - ) - self.assertQuerysetEqual(Book.objects.all(), []) |
