diff options
| author | Tim Graham <timograham@gmail.com> | 2017-04-29 19:00:21 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-04-29 22:24:29 -0400 |
| commit | a2975cb083a01012eb0cb997f0f5b7c2263cfbba (patch) | |
| tree | a4bbcff5c4b318c4c2536d846bb4f88081e00fcc /tests/postgres_tests/__init__.py | |
| parent | 0f60333534a806bc97609f98c02fd14128adbfae (diff) | |
[1.11.x] Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.
Thanks Preston Timmons for review.
Backport of 1ebd295082bb0e6b230cf3bc39fd04bee71c2bd7 from master
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 |
