diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2022-12-01 09:39:46 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-12-01 09:39:46 +0100 |
| commit | 149b55fefad03c18589d580ef53d41e7c99408ed (patch) | |
| tree | e9b9118d1b6b76598746d37c1b0eeb484e78c61f /tests/postgres_tests/__init__.py | |
| parent | 3cafb783f3f711c7413ba2b8d7c8ff750bd4d6e1 (diff) | |
Refs #33308 -- Ensured type handlers are registered for all PostgreSQL specific tests.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'tests/postgres_tests/__init__.py')
| -rw-r--r-- | tests/postgres_tests/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/postgres_tests/__init__.py b/tests/postgres_tests/__init__.py index 6f02531ed0..9f78f5afd8 100644 --- a/tests/postgres_tests/__init__.py +++ b/tests/postgres_tests/__init__.py @@ -7,11 +7,15 @@ 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 |
