diff options
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 dbb913dbba..75286781dd 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(PostgreSQLTestCase, cls).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 |
