1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #22861: Internal migrations done first so __first__ works

Thanks to Chris Beaven.
This commit is contained in:
Andrew Godwin
2014-06-17 23:27:03 -07:00
parent 09b63a7cce
commit 2cee1d4642
10 changed files with 145 additions and 6 deletions

View File

@@ -51,11 +51,11 @@ class GraphTests(TestCase):
# Test roots and leaves
self.assertEqual(
graph.root_nodes(),
set([('app_a', '0001'), ('app_b', '0001')]),
[('app_a', '0001'), ('app_b', '0001')],
)
self.assertEqual(
graph.leaf_nodes(),
set([('app_a', '0004'), ('app_b', '0002')]),
[('app_a', '0004'), ('app_b', '0002')],
)
def test_complex_graph(self):
@@ -105,11 +105,11 @@ class GraphTests(TestCase):
# Test roots and leaves
self.assertEqual(
graph.root_nodes(),
set([('app_a', '0001'), ('app_b', '0001'), ('app_c', '0001')]),
[('app_a', '0001'), ('app_b', '0001'), ('app_c', '0001')],
)
self.assertEqual(
graph.leaf_nodes(),
set([('app_a', '0004'), ('app_b', '0002'), ('app_c', '0002')]),
[('app_a', '0004'), ('app_b', '0002'), ('app_c', '0002')],
)
def test_circular_graph(self):