diff options
| author | Tim Graham <timograham@gmail.com> | 2017-04-29 19:00:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-29 19:00:21 -0400 |
| commit | 1ebd295082bb0e6b230cf3bc39fd04bee71c2bd7 (patch) | |
| tree | 708209ce0a26774988117620f0d18193e9349eeb /tests/postgres_tests/__init__.py | |
| parent | c920db1e57bf6bec65b075fd0baac72e13db9919 (diff) | |
Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.
Thanks Preston Timmons for review.
Diffstat (limited to 'tests/postgres_tests/__init__.py')
| -rw-r--r-- | tests/postgres_tests/__init__.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/postgres_tests/__init__.py b/tests/postgres_tests/__init__.py index 49f1220888..9396b7fe80 100644 --- a/tests/postgres_tests/__init__.py +++ b/tests/postgres_tests/__init__.py @@ -1,8 +1,10 @@ import unittest +from forms_tests.widget_tests.base import WidgetTest + from django.db import connection from django.db.backends.signals import connection_created -from django.test import TestCase +from django.test import TestCase, modify_settings @unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests") @@ -14,3 +16,10 @@ class PostgreSQLTestCase(TestCase): connection_created.disconnect(register_hstore_handler) super().tearDownClass() + + +@unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests") +# To locate the widget's template. +@modify_settings(INSTALLED_APPS={'append': 'django.contrib.postgres'}) +class PostgreSQLWidgetTestCase(WidgetTest): + pass |
