diff options
| author | Tim Graham <timograham@gmail.com> | 2017-09-18 09:11:01 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-18 09:19:26 -0400 |
| commit | da1ba03f1dfb303df9bfb5c76d36216e45d05edc (patch) | |
| tree | e2d6194431849633faa251d7d0ed47c4a400dadd /tests | |
| parent | 3939e2b4dc0719075c29c968d09a746c2e10cb8c (diff) | |
Added test skipping for a PostgreSQL JSONField test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/postgres_tests/test_introspection.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_introspection.py b/tests/postgres_tests/test_introspection.py index a63f08db50..b17d9fc81a 100644 --- a/tests/postgres_tests/test_introspection.py +++ b/tests/postgres_tests/test_introspection.py @@ -1,6 +1,7 @@ from io import StringIO from django.core.management import call_command +from django.test import skipUnlessDBFeature from django.test.utils import modify_settings from . import PostgreSQLTestCase @@ -19,6 +20,7 @@ class InspectDBTests(PostgreSQLTestCase): for field_output in field_outputs: self.assertIn(field_output, output) + @skipUnlessDBFeature('has_jsonb_datatype') def test_json_field(self): self.assertFieldsInModel( 'postgres_tests_jsonmodel', |
