From a599ae6018f748f66e774604d12989911ea09d33 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 9 Sep 2017 18:33:05 +0200 Subject: Refs #24928 -- Added introspection support for PostgreSQL RangeField --- tests/postgres_tests/test_introspection.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/postgres_tests') 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)', + ], + ) -- cgit v1.3