summaryrefslogtreecommitdiff
path: root/yoyo
diff options
context:
space:
mode:
authorOlly Cope <olly@ollycope.com>2021-05-15 14:19:35 +0000
committerOlly Cope <olly@ollycope.com>2021-05-15 14:19:35 +0000
commitdff2104a462786235f8c02da4a03b7e4d63b1661 (patch)
treea476ff2f88e873eb0feb30719387dddd3479ce38 /yoyo
parent1602028735f1987c84c13edda68408232c493f68 (diff)
downloadyoyo-dff2104a462786235f8c02da4a03b7e4d63b1661.tar.gz
topological sort: add extra test assertion to ensure dependency order correct
Diffstat (limited to 'yoyo')
-rw-r--r--yoyo/tests/test_migrations.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yoyo/tests/test_migrations.py b/yoyo/tests/test_migrations.py
index 2fdef3b..67ee9b6 100644
--- a/yoyo/tests/test_migrations.py
+++ b/yoyo/tests/test_migrations.py
@@ -278,6 +278,8 @@ class TestTopologicalSort(object):
output_order = "".join(output)
else:
output_order = output
+ for x, y in edges:
+ assert output.index(x) < output.index(y)
assert output_order == expected_order
def get_mock_migrations(self, nodes="ABCD", edges=[]):