mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
parent
285bd02c92
commit
2a9c4b4901
2 changed files with 17 additions and 10 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue