diff options
| author | Tim Graham <timograham@gmail.com> | 2014-11-15 15:27:41 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-15 15:28:04 +0100 |
| commit | 83d104d61af1ee7d8dc1192f0801a7cee972e9de (patch) | |
| tree | c477c2b7758ac1b391d2dd29de98fa65a67486cf /tests | |
| parent | f59fd15c4928caf3dfcbd50f6ab47be409a43b01 (diff) | |
Revert "Use topological sort for migration operation dependency resolution"
This commit broke the tests on Python 3.
This reverts commit 13d613f80011852404198dfafd1f09c0c0ea42e6.
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 d891a83401..bd6763e4db 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", "RemoveField", "DeleteModel", "DeleteModel"]) + self.assertOperationTypes(changes, "testapp", 0, ["RemoveField", "RemoveField", "DeleteModel", "RemoveField", "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="publisher") - self.assertOperationAttributes(changes, "testapp", 0, 3, name="Author") + self.assertOperationAttributes(changes, "testapp", 0, 2, name="Author") + self.assertOperationAttributes(changes, "testapp", 0, 3, name="publisher") self.assertOperationAttributes(changes, "testapp", 0, 4, name="Contract") def test_non_circular_foreignkey_dependency_removal(self): |
