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/test_apps.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/test_apps.py')
| -rw-r--r-- | tests/postgres_tests/test_apps.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/postgres_tests/test_apps.py b/tests/postgres_tests/test_apps.py index 340e555609..678e5a9374 100644 --- a/tests/postgres_tests/test_apps.py +++ b/tests/postgres_tests/test_apps.py @@ -1,11 +1,12 @@ +import unittest from decimal import Decimal +from django.db import connection from django.db.backends.signals import connection_created from django.db.migrations.writer import MigrationWriter +from django.test import TestCase from django.test.utils import modify_settings -from . import PostgreSQLTestCase - try: from psycopg2.extras import DateRange, DateTimeRange, DateTimeTZRange, NumericRange @@ -19,7 +20,8 @@ except ImportError: pass -class PostgresConfigTests(PostgreSQLTestCase): +@unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests") +class PostgresConfigTests(TestCase): def test_register_type_handlers_connection(self): from django.contrib.postgres.signals import register_type_handlers |
