summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2014-11-30 18:11:52 +0100
committerLoic Bistuer <loic.bistuer@gmail.com>2014-12-01 11:30:33 +0700
commitd2202ec2d4d0477b682c6d0051f27ab4843ef89f (patch)
tree2034dde44b6718232748509f3523d4a88179e192 /tests
parent88edce2abb235999523b65977dd1214cb39dabaa (diff)
Fixed #23880 -- Added missing index_together handling for SQLite
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_operations.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py
index 32f70e8fe8..ef6cbfc688 100644
--- a/tests/migrations/test_operations.py
+++ b/tests/migrations/test_operations.py
@@ -1052,16 +1052,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"])
# And deconstruction
definition = operation.deconstruct()
self.assertEqual(definition[0], "RenameField")