mirror of
https://github.com/django/django.git
synced 2025-07-29 08:04:27 +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:
parent
3cafb783f3
commit
149b55fefa
11 changed files with 12 additions and 35 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue