mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
149b55fefa
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
28 lines
984 B
Python
28 lines
984 B
Python
import unittest
|
|
|
|
from forms_tests.widget_tests.base import WidgetTest
|
|
|
|
from django.db import connection
|
|
from django.test import SimpleTestCase, TestCase, modify_settings
|
|
|
|
|
|
@unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests")
|
|
# To register type handlers and locate the widget's template.
|
|
@modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
|
|
class PostgreSQLSimpleTestCase(SimpleTestCase):
|
|
pass
|
|
|
|
|
|
@unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests")
|
|
# To register type handlers and locate the widget's template.
|
|
@modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
|
|
class PostgreSQLTestCase(TestCase):
|
|
pass
|
|
|
|
|
|
@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, PostgreSQLSimpleTestCase):
|
|
pass
|