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__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/postgres_tests/__init__.py b/tests/postgres_tests/__init__.py
index 9396b7fe80..24d78c9bfe 100644
--- a/tests/postgres_tests/__init__.py
+++ b/tests/postgres_tests/__init__.py
@@ -12,14 +12,14 @@ class PostgreSQLTestCase(TestCase):
@classmethod
def tearDownClass(cls):
# No need to keep that signal overhead for non PostgreSQL-related tests.
- from django.contrib.postgres.signals import register_hstore_handler
+ from django.contrib.postgres.signals import register_type_handlers
- connection_created.disconnect(register_hstore_handler)
+ connection_created.disconnect(register_type_handlers)
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):
+class PostgreSQLWidgetTestCase(WidgetTest, PostgreSQLTestCase):
pass