mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #33308 -- Ensured type handlers are registered for all PostgreSQL specific tests.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
3cafb783f3
commit
149b55fefa
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user