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

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']
)