mirror of
https://github.com/django/django.git
synced 2025-09-14 06:25:15 +00:00
Fixed #33717 -- Dropped support for PostgreSQL 11.
This commit is contained in:
parent
9f55489529
commit
981c23c0cc
17 changed files with 22 additions and 118 deletions
|
@ -315,9 +315,9 @@ class Tests(TestCase):
|
|||
new_connection.pg_version = 110009
|
||||
self.assertEqual(new_connection.get_database_version(), (11, 9))
|
||||
|
||||
@mock.patch.object(connection, "get_database_version", return_value=(10,))
|
||||
@mock.patch.object(connection, "get_database_version", return_value=(11,))
|
||||
def test_check_database_version_supported(self, mocked_get_database_version):
|
||||
msg = "PostgreSQL 11 or later is required (found 10)."
|
||||
msg = "PostgreSQL 12 or later is required (found 11)."
|
||||
with self.assertRaisesMessage(NotSupportedError, msg):
|
||||
connection.check_database_version_supported()
|
||||
self.assertTrue(mocked_get_database_version.called)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue