From 0fd51cf0bd31afb085d16476d5a54bedf4a1bc32 Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Wed, 26 Mar 2014 03:51:15 +0800 Subject: Fixed #22319 -- Fixed migration external dependencies when there are internal dependencies. --- tests/migrations/test_autodetector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/migrations/test_autodetector.py b/tests/migrations/test_autodetector.py index 5ceadc7430..a56e31568a 100644 --- a/tests/migrations/test_autodetector.py +++ b/tests/migrations/test_autodetector.py @@ -343,7 +343,7 @@ class AutodetectorTests(TestCase): self.assertEqual(action.name, "author") # Right dependencies? self.assertEqual(migration1.dependencies, [("otherapp", "auto_1")]) - self.assertEqual(migration2.dependencies, []) + self.assertEqual(migration2.dependencies, [('testapp', '__first__')]) self.assertEqual(set(migration3.dependencies), set([("otherapp", "auto_1"), ("testapp", "auto_1")])) def test_same_app_circular_fk_dependency(self): -- cgit v1.3