diff options
| author | Tim Graham <timograham@gmail.com> | 2016-07-14 09:10:15 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-14 09:21:28 -0400 |
| commit | 944e66cb1db6614ef0644b9030dd1d75e950767c (patch) | |
| tree | e9669ae0366398d84af9c27fd92ec28f705c6f90 /tests | |
| parent | a11719047711d8031dcea6a71cc5972b9ec1d48f (diff) | |
Reverted "Fixed #25388 -- Added an option to allow disabling of migrations during test database creation"
This reverts commit 157d7f1f1de4705daddebb77f21bd7097a74513d since it
disables migrations all the time, not just during tests.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_loader.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py index bf948768fd..0b014f7d57 100644 --- a/tests/migrations/test_loader.py +++ b/tests/migrations/test_loader.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from unittest import skipIf -from django.db import ConnectionHandler, connection, connections +from django.db import connection, connections from django.db.migrations.exceptions import ( AmbiguityError, InconsistentMigrationHistory, NodeNotFoundError, ) @@ -204,23 +204,6 @@ class LoaderTests(TestCase): self.assertEqual(migration_loader.migrated_apps, set()) self.assertEqual(migration_loader.unmigrated_apps, {'migrated_app'}) - @override_settings( - INSTALLED_APPS=['migrations.migrations_test_apps.migrated_app'], - ) - def test_disable_migrations(self): - connections = ConnectionHandler({ - 'default': { - 'NAME': ':memory:', - 'ENGINE': 'django.db.backends.sqlite3', - 'TEST': { - 'MIGRATE': False, - }, - }, - }) - migration_loader = MigrationLoader(connections['default']) - self.assertEqual(migration_loader.migrated_apps, set()) - self.assertEqual(migration_loader.unmigrated_apps, {'migrated_app'}) - @override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations_squashed"}) def test_loading_squashed(self): "Tests loading a squashed migration" |
