Passed around the state between migrations

Refs #23745.
This commit is contained in:
Claude Paroz 2014-10-26 18:30:58 +01:00
parent 285bd02c92
commit 2a9c4b4901
2 changed files with 17 additions and 10 deletions

View file

@ -223,7 +223,7 @@ class ExecutorTests(MigrationTestBase):
global_apps.get_app_config("migrations").models["author"] = migrations_apps.get_model("migrations", "author")
try:
migration = executor.loader.get_migration("auth", "0001_initial")
self.assertEqual(executor.detect_soft_applied(migration), True)
self.assertEqual(executor.detect_soft_applied(None, migration), True)
finally:
connection.introspection.table_names = old_table_names
del global_apps.get_app_config("migrations").models["author"]