summaryrefslogtreecommitdiff
path: root/tests/migrations/test_executor.py
diff options
context:
space:
mode:
authorTim Schilling <schilling711@gmail.com>2019-03-07 18:36:55 -0600
committerTim Graham <timograham@gmail.com>2019-03-07 19:36:55 -0500
commit371ddade1e4e28827fd45e041c9410f8b4f01067 (patch)
tree351d484551f81001980e9e3fc16ee006000bb44e /tests/migrations/test_executor.py
parentacc041984fac1e79d9a1258c94479dd3ffc7f186 (diff)
Refs #30186 -- Changed MigrationRecorder.applied_migrations() to return a dict.
Diffstat (limited to 'tests/migrations/test_executor.py')
-rw-r--r--tests/migrations/test_executor.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/migrations/test_executor.py b/tests/migrations/test_executor.py
index 8bb4f83c5f..ddba8d12e8 100644
--- a/tests/migrations/test_executor.py
+++ b/tests/migrations/test_executor.py
@@ -711,7 +711,11 @@ class ExecutorUnitTests(SimpleTestCase):
graph.add_dependency(None, a2, a1)
executor = MigrationExecutor(None)
- executor.loader = FakeLoader(graph, {a1, b1, a2})
+ executor.loader = FakeLoader(graph, {
+ a1: a1_impl,
+ b1: b1_impl,
+ a2: a2_impl,
+ })
plan = executor.migration_plan({a1})
@@ -754,7 +758,14 @@ class ExecutorUnitTests(SimpleTestCase):
graph.add_dependency(None, b2, a2)
executor = MigrationExecutor(None)
- executor.loader = FakeLoader(graph, {a1, b1, a2, b2, a3, a4})
+ executor.loader = FakeLoader(graph, {
+ a1: a1_impl,
+ b1: b1_impl,
+ a2: a2_impl,
+ b2: b2_impl,
+ a3: a3_impl,
+ a4: a4_impl,
+ })
plan = executor.migration_plan({a1})
@@ -791,7 +802,10 @@ class ExecutorUnitTests(SimpleTestCase):
graph.add_dependency(None, c1, a1)
executor = MigrationExecutor(None)
- executor.loader = FakeLoader(graph, {a1, b1})
+ executor.loader = FakeLoader(graph, {
+ a1: a1_impl,
+ b1: b1_impl,
+ })
plan = executor.migration_plan({a1})