summaryrefslogtreecommitdiff
path: root/tests/migrations/test_graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/migrations/test_graph.py')
-rw-r--r--tests/migrations/test_graph.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/migrations/test_graph.py b/tests/migrations/test_graph.py
index 1d517f242d..29738dfdf0 100644
--- a/tests/migrations/test_graph.py
+++ b/tests/migrations/test_graph.py
@@ -47,7 +47,10 @@ class GraphTests(SimpleTestCase):
# Test whole graph
self.assertEqual(
graph.forwards_plan(("app_a", "0004")),
- [('app_b', '0001'), ('app_b', '0002'), ('app_a', '0001'), ('app_a', '0002'), ('app_a', '0003'), ('app_a', '0004')],
+ [
+ ('app_b', '0001'), ('app_b', '0002'), ('app_a', '0001'),
+ ('app_a', '0002'), ('app_a', '0003'), ('app_a', '0004'),
+ ],
)
# Test reverse to b:0002
self.assertEqual(
@@ -101,12 +104,19 @@ class GraphTests(SimpleTestCase):
# Test whole graph
self.assertEqual(
graph.forwards_plan(("app_a", "0004")),
- [('app_b', '0001'), ('app_c', '0001'), ('app_a', '0001'), ('app_a', '0002'), ('app_c', '0002'), ('app_b', '0002'), ('app_a', '0003'), ('app_a', '0004')],
+ [
+ ('app_b', '0001'), ('app_c', '0001'), ('app_a', '0001'),
+ ('app_a', '0002'), ('app_c', '0002'), ('app_b', '0002'),
+ ('app_a', '0003'), ('app_a', '0004'),
+ ],
)
# Test reverse to b:0001
self.assertEqual(
graph.backwards_plan(("app_b", "0001")),
- [('app_a', '0004'), ('app_c', '0002'), ('app_c', '0001'), ('app_a', '0003'), ('app_b', '0002'), ('app_b', '0001')],
+ [
+ ('app_a', '0004'), ('app_c', '0002'), ('app_c', '0001'),
+ ('app_a', '0003'), ('app_b', '0002'), ('app_b', '0001'),
+ ],
)
# Test roots and leaves
self.assertEqual(