summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkshesh <aksheshdoshi@gmail.com>2016-08-16 12:09:03 +0530
committerTim Graham <timograham@gmail.com>2016-08-16 09:11:33 -0400
commita71724cd04e6b2b0c97f1cdbea2e528e65373be3 (patch)
tree9f8e2df288afa250f110f7cf7113c1c9eeca55ae /tests
parent7c9bd07f6957c888daad9565fc05fd8c2eb78f31 (diff)
Refs #26709 -- Added index name to AddIndex.describe().
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py
index fdb956ae26..5f96043e53 100644
--- a/tests/migrations/test_operations.py
+++ b/tests/migrations/test_operations.py
@@ -1405,7 +1405,7 @@ class OperationTests(OperationTestBase):
migrations.AddIndex("Pony", models.Index(fields=["pink"]))
index = models.Index(fields=["pink"], name="test_adin_pony_pink_idx")
operation = migrations.AddIndex("Pony", index)
- self.assertEqual(operation.describe(), "Create index on field(s) pink of model Pony")
+ self.assertEqual(operation.describe(), "Create index test_adin_pony_pink_idx on field(s) pink of model Pony")
new_state = project_state.clone()
operation.state_forwards("test_adin", new_state)
# Test the database alteration