diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-11-05 10:43:31 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-01-02 15:19:36 +0100 |
| commit | a159b1facd222c20dde12f1e0117643af528d511 (patch) | |
| tree | 64fadd6c79714f41bbdd5efb0a5f3d2331c88ccb /tests/migrations/test_executor.py | |
| parent | 4ee06ec3fc8e94d164afbd2f9c880c60c658a9ac (diff) | |
Replaced migration state render() by apps cached property
Refs #23745.
Diffstat (limited to 'tests/migrations/test_executor.py')
| -rw-r--r-- | tests/migrations/test_executor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migrations/test_executor.py b/tests/migrations/test_executor.py index 1bc1ca781d..d21dc69472 100644 --- a/tests/migrations/test_executor.py +++ b/tests/migrations/test_executor.py @@ -219,7 +219,7 @@ class ExecutorTests(MigrationTestBase): # exists in the global app registry temporarily. old_table_names = connection.introspection.table_names connection.introspection.table_names = lambda c: [x for x in old_table_names(c) if x != "auth_user"] - migrations_apps = executor.loader.project_state(("migrations", "0001_initial")).render() + migrations_apps = executor.loader.project_state(("migrations", "0001_initial")).apps global_apps.get_app_config("migrations").models["author"] = migrations_apps.get_model("migrations", "author") try: migration = executor.loader.get_migration("auth", "0001_initial") |
