mirror of
https://github.com/django/django.git
synced 2025-09-10 20:46:52 +00:00
Fixed #32357 -- Dropped support for PostgreSQL 9.6 and PostGIS 2.3.
This commit is contained in:
parent
10d1261984
commit
5371342ed6
16 changed files with 35 additions and 80 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue