summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2022-12-01 09:39:46 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-12-01 09:39:46 +0100
commit149b55fefad03c18589d580ef53d41e7c99408ed (patch)
treee9b9118d1b6b76598746d37c1b0eeb484e78c61f /tests/postgres_tests/test_array.py
parent3cafb783f3f711c7413ba2b8d7c8ff750bd4d6e1 (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_array.py')
-rw-r--r--tests/postgres_tests/test_array.py9
1 files changed, 1 insertions, 8 deletions
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)