diff options
| author | Markus Holtermann <info@markusholtermann.eu> | 2014-11-30 18:11:52 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-01 16:00:36 -0500 |
| commit | ba3e97618696bdd68e4ac9b2220f58e6b3d15bd4 (patch) | |
| tree | 8af8d662735f4353e2f1af23b381435e3d7445bd /tests | |
| parent | d62e16fe46684f86dada90fb615651686945263d (diff) | |
[1.7.x] Fixed #23880 -- Added missing index_together handling for SQLite
Backport of d2202ec2d4d0477b682c6d0051f27ab4843ef89f from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_operations.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index dead760d5c..05e0f22696 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -1012,16 +1012,14 @@ class OperationTests(OperationTestBase): cursor.execute("INSERT INTO test_rnfl_pony (blue, weight) VALUES (1, 1)") cursor.execute("DELETE FROM test_rnfl_pony") # Ensure the index constraint has been ported over - # TODO: Uncomment assert when #23880 is fixed - # self.assertIndexExists("test_rnfl_pony", ["weight", "blue"]) + self.assertIndexExists("test_rnfl_pony", ["weight", "blue"]) # And test reversal with connection.schema_editor() as editor: operation.database_backwards("test_rnfl", editor, new_state, project_state) self.assertColumnExists("test_rnfl_pony", "pink") self.assertColumnNotExists("test_rnfl_pony", "blue") # Ensure the index constraint has been reset - # TODO: Uncomment assert when #23880 is fixed - # self.assertIndexExists("test_rnfl_pony", ["weight", "pink"]) + self.assertIndexExists("test_rnfl_pony", ["weight", "pink"]) def test_alter_unique_together(self): """ |
