Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.

This commit is contained in:
Mariusz Felisiak 2022-05-04 06:28:51 +02:00 committed by GitHub
parent 9d04711261
commit 37470bbd90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 18 additions and 30 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=(9, 6))
@mock.patch.object(connection, "get_database_version", return_value=(10,))
def test_check_database_version_supported(self, mocked_get_database_version):
msg = "PostgreSQL 10 or later is required (found 9.6)."
msg = "PostgreSQL 11 or later is required (found 10)."
with self.assertRaisesMessage(NotSupportedError, msg):
connection.check_database_version_supported()
self.assertTrue(mocked_get_database_version.called)