diff options
Diffstat (limited to 'tests/introspection')
-rw-r--r-- | tests/introspection/tests.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index ed10927b2a..2e68e52542 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -4,8 +4,6 @@ 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 -from django.utils.deprecation import RemovedInDjango21Warning from .models import Article, ArticleReporter, City, District, Reporter @@ -170,22 +168,6 @@ class IntrospectionTests(TransactionTestCase): self.assertEqual(primary_key_column, 'id') self.assertEqual(pk_fk_column, 'city_id') - @ignore_warnings(category=RemovedInDjango21Warning) - def test_get_indexes(self): - with connection.cursor() as cursor: - indexes = connection.introspection.get_indexes(cursor, Article._meta.db_table) - self.assertEqual(indexes['reporter_id'], {'unique': False, 'primary_key': False}) - - @ignore_warnings(category=RemovedInDjango21Warning) - def test_get_indexes_multicol(self): - """ - Multicolumn indexes are not included in the introspection results. - """ - with connection.cursor() as cursor: - indexes = connection.introspection.get_indexes(cursor, Reporter._meta.db_table) - self.assertNotIn('first_name', indexes) - self.assertIn('id', indexes) - def test_get_constraints_index_types(self): with connection.cursor() as cursor: constraints = connection.introspection.get_constraints(cursor, Article._meta.db_table) |