diff options
| author | Tim Graham <timograham@gmail.com> | 2017-02-15 13:33:55 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-15 20:15:02 -0500 |
| commit | b008f7cc5655d01817a8825e6317877b43c92181 (patch) | |
| tree | 4e70b2dbab77c2dee5e6fdc43c87535c52126740 /tests/introspection | |
| parent | a7214f0e84913a27e0b73de89d4c827ef1c53b94 (diff) | |
Fixed #27135 -- Made index introspection return Index.suffix.
Diffstat (limited to 'tests/introspection')
| -rw-r--r-- | tests/introspection/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index 2993592e4f..4d96bf8514 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -1,6 +1,7 @@ from unittest import mock, skipUnless from django.db import connection +from django.db.models import Index from django.db.utils import DatabaseError from django.test import TransactionTestCase, skipUnlessDBFeature from django.test.utils import ignore_warnings @@ -191,7 +192,7 @@ class IntrospectionTests(TransactionTestCase): for key, val in constraints.items(): if val['columns'] == ['headline', 'pub_date']: index = val - self.assertEqual(index['type'], 'btree') + self.assertEqual(index['type'], Index.suffix) @skipUnlessDBFeature('supports_index_column_ordering') def test_get_constraints_indexes_orders(self): |
