diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-09-09 18:33:05 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-09-09 20:22:47 +0200 |
| commit | a599ae6018f748f66e774604d12989911ea09d33 (patch) | |
| tree | bba36102a26f22e3cc7f2fc8240b02d7b0b7ef05 /tests/postgres_tests | |
| parent | 0cbb6ac00770d201b8f30a404d516b97fe41485d (diff) | |
Refs #24928 -- Added introspection support for PostgreSQL RangeField
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_introspection.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_introspection.py b/tests/postgres_tests/test_introspection.py index 1058a1656b..a63f08db50 100644 --- a/tests/postgres_tests/test_introspection.py +++ b/tests/postgres_tests/test_introspection.py @@ -24,3 +24,15 @@ class InspectDBTests(PostgreSQLTestCase): 'postgres_tests_jsonmodel', ['field = django.contrib.postgresql.fields.JSONField(blank=True, null=True)'], ) + + def test_range_fields(self): + self.assertFieldsInModel( + 'postgres_tests_rangesmodel', + [ + 'ints = django.contrib.postgresql.fields.IntegerRangeField(blank=True, null=True)', + 'bigints = django.contrib.postgresql.fields.BigIntegerRangeField(blank=True, null=True)', + 'floats = django.contrib.postgresql.fields.FloatRangeField(blank=True, null=True)', + 'timestamps = django.contrib.postgresql.fields.DateTimeRangeField(blank=True, null=True)', + 'dates = django.contrib.postgresql.fields.DateRangeField(blank=True, null=True)', + ], + ) |
