1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #31630 -- Removed DatabaseFeatures.can_introspect_autofield.

This commit is contained in:
Tim Graham
2020-06-01 20:18:14 -04:00
committed by Mariusz Felisiak
parent e198beadad
commit e24b63fe85
8 changed files with 7 additions and 12 deletions

View File

@@ -80,7 +80,7 @@ class IntrospectionTests(TransactionTestCase):
self.assertEqual(
[connection.introspection.get_field_type(r[1], r) for r in desc],
[
'AutoField' if connection.features.can_introspect_autofield else 'IntegerField',
connection.features.introspected_field_types['AutoField'],
'CharField',
'CharField',
'CharField',
@@ -108,7 +108,6 @@ class IntrospectionTests(TransactionTestCase):
[False, nullable_by_backend, nullable_by_backend, nullable_by_backend, True, True, False, False]
)
@skipUnlessDBFeature('can_introspect_autofield')
def test_bigautofield(self):
with connection.cursor() as cursor:
desc = connection.introspection.get_table_description(cursor, City._meta.db_table)
@@ -117,7 +116,6 @@ class IntrospectionTests(TransactionTestCase):
[connection.introspection.get_field_type(r[1], r) for r in desc],
)
@skipUnlessDBFeature('can_introspect_autofield')
def test_smallautofield(self):
with connection.cursor() as cursor:
desc = connection.introspection.get_table_description(cursor, Country._meta.db_table)