From 1ebd295082bb0e6b230cf3bc39fd04bee71c2bd7 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 29 Apr 2017 19:00:21 -0400 Subject: Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering. Thanks Preston Timmons for review. --- tests/postgres_tests/__init__.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/postgres_tests/__init__.py') 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 -- cgit v1.3