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_constraints.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_constraints.py')
| -rw-r--r-- | tests/postgres_tests/test_constraints.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/postgres_tests/test_constraints.py b/tests/postgres_tests/test_constraints.py index 5084f116ab..72e3e66895 100644 --- a/tests/postgres_tests/test_constraints.py +++ b/tests/postgres_tests/test_constraints.py @@ -16,7 +16,7 @@ from django.db.models import ( ) from django.db.models.fields.json import KeyTextTransform from django.db.models.functions import Cast, Left, Lower -from django.test import ignore_warnings, modify_settings, skipUnlessDBFeature +from django.test import ignore_warnings, skipUnlessDBFeature from django.test.utils import isolate_apps from django.utils import timezone from django.utils.deprecation import RemovedInDjango50Warning @@ -37,7 +37,6 @@ except ImportError: pass -@modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"}) class SchemaTests(PostgreSQLTestCase): get_opclass_query = """ SELECT opcname, c.relname FROM pg_opclass AS oc @@ -255,7 +254,6 @@ class SchemaTests(PostgreSQLTestCase): Scene.objects.create(scene="ScEnE 10", setting="Sir Bedemir's Castle") -@modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"}) class ExclusionConstraintTests(PostgreSQLTestCase): def get_constraints(self, table): """Get the constraints on the table using a new cursor.""" @@ -1198,7 +1196,6 @@ class ExclusionConstraintTests(PostgreSQLTestCase): ) -@modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"}) class ExclusionConstraintOpclassesDepracationTests(PostgreSQLTestCase): def get_constraints(self, table): """Get the constraints on the table using a new cursor.""" |
