From 149b55fefad03c18589d580ef53d41e7c99408ed Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Thu, 1 Dec 2022 09:39:46 +0100 Subject: Refs #33308 -- Ensured type handlers are registered for all PostgreSQL specific tests. Co-authored-by: Mariusz Felisiak --- tests/postgres_tests/test_array.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tests/postgres_tests/test_array.py') diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index 9e20ab3baf..e1d9be6c02 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -12,12 +12,7 @@ from django.core.management import call_command from django.db import IntegrityError, connection, models from django.db.models.expressions import Exists, OuterRef, RawSQL, Value from django.db.models.functions import Cast, JSONObject, Upper -from django.test import ( - TransactionTestCase, - modify_settings, - override_settings, - skipUnlessDBFeature, -) +from django.test import TransactionTestCase, override_settings, skipUnlessDBFeature from django.test.utils import isolate_apps from django.utils import timezone @@ -1259,8 +1254,6 @@ class TestSplitFormField(PostgreSQLSimpleTestCase): with self.assertRaisesMessage(exceptions.ValidationError, msg): SplitArrayField(forms.IntegerField(max_value=100), size=2).clean([0, 101]) - # To locate the widget's template. - @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"}) def test_rendering(self): class SplitForm(forms.Form): array = SplitArrayField(forms.CharField(), size=3) -- cgit v1.3