summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/postgres_tests/__init__.py')
-rw-r--r--tests/postgres_tests/__init__.py11
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