Fixed #33717 -- Dropped support for PostgreSQL 11.

This commit is contained in:
Mariusz Felisiak 2022-05-19 09:26:48 +02:00 committed by GitHub
parent 9f55489529
commit 981c23c0cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 22 additions and 118 deletions

View file

@ -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)