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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user