Adjusted refactoring of vendor checks.

Thanks Shai for the thorough review.
This commit is contained in:
Aymeric Augustin 2014-05-10 14:40:42 +02:00
parent a5de0df58b
commit fb90b7cda2
6 changed files with 11 additions and 10 deletions

View file

@ -57,7 +57,8 @@ class IntrospectionTests(TestCase):
self.assertEqual(
[datatype(r[1], r) for r in desc],
['AutoField' if connection.features.can_introspect_autofield else 'IntegerField',
'CharField', 'CharField', 'CharField', 'BigIntegerField',
'CharField', 'CharField', 'CharField',
'BigIntegerField' if connection.features.can_introspect_big_integer_field else 'IntegerField',
'BinaryField' if connection.features.can_introspect_binary_field else 'TextField']
)