diff options
author | Tim Graham <timograham@gmail.com> | 2020-06-01 21:59:03 -0400 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-04 08:46:06 +0200 |
commit | a7b4a04d6c54679cb0fbc8679367848bd7dae718 (patch) | |
tree | a2c167644c4f6d3782ee7f6d9469ac1a58303dd4 /tests/introspection | |
parent | e24b63fe859c03c429ebeb7d28665f591cee22ff (diff) | |
download | django-a7b4a04d6c54679cb0fbc8679367848bd7dae718.tar.gz |
Refs #31630 -- Added CharField and IntegerField to DatabaseFeatures.introspected_field_types.
CockroachDB introspects CharField as TextField and IntegerField as
BigIntegerField.
Diffstat (limited to 'tests/introspection')
-rw-r--r-- | tests/introspection/tests.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index 9335250c89..fd7def1def 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -80,15 +80,12 @@ class IntrospectionTests(TransactionTestCase): self.assertEqual( [connection.introspection.get_field_type(r[1], r) for r in desc], [ - connection.features.introspected_field_types['AutoField'], - 'CharField', - 'CharField', - 'CharField', - connection.features.introspected_field_types['BigIntegerField'], - connection.features.introspected_field_types['BinaryField'], - connection.features.introspected_field_types['SmallIntegerField'], - connection.features.introspected_field_types['DurationField'], - ] + connection.features.introspected_field_types[field] for field in ( + 'AutoField', 'CharField', 'CharField', 'CharField', + 'BigIntegerField', 'BinaryField', 'SmallIntegerField', + 'DurationField', + ) + ], ) def test_get_table_description_col_lengths(self): |