diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-06-17 21:32:23 -0700 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-06-17 21:32:35 -0700 |
| commit | cd82069b97a73e89540bd8ed6fe42659eccb351c (patch) | |
| tree | 0bc506418b20dd4692a2bcc01e64095a510f8612 /tests | |
| parent | f355d253f81c78b595e25e84309b648c24208d73 (diff) | |
[1.7.x] Fix broken test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_operations.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index 48eedd193c..f6ce5fc96a 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -1212,11 +1212,10 @@ class SwappableOperationTests(OperationTestBase): project_state, new_state = self.make_test_state("test_adfligsw", operation) # Test the database alteration self.assertTableNotExists("test_adfligsw_pont") - self.assertColumnNotExists("test_adfligsw_pony", "height") with connection.schema_editor() as editor: operation.database_forwards("test_adfligsw", editor, project_state, new_state) - self.assertColumnNotExists("test_adfligsw_pony", "height") + self.assertTableNotExists("test_adfligsw_pont") # And test reversal with connection.schema_editor() as editor: operation.database_backwards("test_adfligsw", editor, new_state, project_state) - self.assertColumnNotExists("test_adfligsw_pony", "height") + self.assertTableNotExists("test_adfligsw_pont") |
