diff options
| author | Klaas van Schelven <klaas@vanschelven.com> | 2014-11-15 14:45:42 +0100 |
|---|---|---|
| committer | Klaas van Schelven <klaas@vanschelven.com> | 2014-11-15 14:45:42 +0100 |
| commit | 13d613f80011852404198dfafd1f09c0c0ea42e6 (patch) | |
| tree | cbdb182bad42e683ecfac3bbae01178d9569defd /tests | |
| parent | 4f90c99635149fae2f488c03f0b52303fe97e0aa (diff) | |
Use topological sort for migration operation dependency resolution
rather than an ad-hoc algorithm
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_autodetector.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/migrations/test_autodetector.py b/tests/migrations/test_autodetector.py index bd6763e4db..d891a83401 100644 --- a/tests/migrations/test_autodetector.py +++ b/tests/migrations/test_autodetector.py @@ -1107,12 +1107,12 @@ class AutodetectorTests(TestCase): # Right number of migrations? self.assertNumberMigrations(changes, "testapp", 1) # Right actions in right order? - self.assertOperationTypes(changes, "testapp", 0, ["RemoveField", "RemoveField", "DeleteModel", "RemoveField", "DeleteModel"]) + self.assertOperationTypes(changes, "testapp", 0, ["RemoveField", "RemoveField", "RemoveField", "DeleteModel", "DeleteModel"]) # Actions touching the right stuff? self.assertOperationAttributes(changes, "testapp", 0, 0, name="publishers") self.assertOperationAttributes(changes, "testapp", 0, 1, name="author") - self.assertOperationAttributes(changes, "testapp", 0, 2, name="Author") - self.assertOperationAttributes(changes, "testapp", 0, 3, name="publisher") + self.assertOperationAttributes(changes, "testapp", 0, 2, name="publisher") + self.assertOperationAttributes(changes, "testapp", 0, 3, name="Author") self.assertOperationAttributes(changes, "testapp", 0, 4, name="Contract") def test_non_circular_foreignkey_dependency_removal(self): |
