MCPcopy
hub / github.com/django/django / test_bigautofield

Method test_bigautofield

tests/introspection/tests.py:165–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 )
164
165 def test_bigautofield(self):
166 with connection.cursor() as cursor:
167 desc = connection.introspection.get_table_description(
168 cursor, City._meta.db_table
169 )
170 self.assertIn(
171 connection.features.introspected_field_types["BigAutoField"],
172 [connection.introspection.get_field_type(r[1], r) for r in desc],
173 )
174
175 def test_smallautofield(self):
176 with connection.cursor() as cursor:

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
get_table_descriptionMethod · 0.45
get_field_typeMethod · 0.45

Tested by

no test coverage detected