summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_operations.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-19 12:25:20 +0100
committerGitHub <noreply@github.com>2021-01-19 12:25:20 +0100
commit5371342ed66f5ff9feae9dc4586ec43830bbeca6 (patch)
treeb5c5a6f3b264770af4c34411f72c43c5b79a82ce /tests/postgres_tests/test_operations.py
parent10d126198434810529e0220b0c6896ed64ca0e88 (diff)
Fixed #32357 -- Dropped support for PostgreSQL 9.6 and PostGIS 2.3.
Diffstat (limited to 'tests/postgres_tests/test_operations.py')
-rw-r--r--tests/postgres_tests/test_operations.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/postgres_tests/test_operations.py b/tests/postgres_tests/test_operations.py
index b914a70523..9faf938c55 100644
--- a/tests/postgres_tests/test_operations.py
+++ b/tests/postgres_tests/test_operations.py
@@ -298,7 +298,6 @@ class CreateCollationTests(PostgreSQLTestCase):
'deterministic': False,
})
- @skipUnlessDBFeature('supports_alternate_collation_providers')
def test_create_collation_alternate_provider(self):
operation = CreateCollation(
'german_phonebook_test',
@@ -339,24 +338,6 @@ class CreateCollationTests(PostgreSQLTestCase):
with self.assertRaisesMessage(NotSupportedError, msg):
operation.database_forwards(self.app_label, editor, project_state, new_state)
- def test_collation_with_icu_provider_raises_error(self):
- operation = CreateCollation(
- 'german_phonebook',
- provider='icu',
- locale='de-u-co-phonebk',
- )
- project_state = ProjectState()
- new_state = project_state.clone()
- msg = 'Non-libc providers require PostgreSQL 10+.'
- with connection.schema_editor(atomic=False) as editor:
- with mock.patch(
- 'django.db.backends.postgresql.features.DatabaseFeatures.'
- 'supports_alternate_collation_providers',
- False,
- ):
- with self.assertRaisesMessage(NotSupportedError, msg):
- operation.database_forwards(self.app_label, editor, project_state, new_state)
-
@unittest.skipUnless(connection.vendor == 'postgresql', 'PostgreSQL specific tests.')
class RemoveCollationTests(PostgreSQLTestCase):