diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-04 06:28:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 06:28:51 +0200 |
commit | 37470bbd9089b1c64a5783438b42b31336937845 (patch) | |
tree | 90984a794adfe072ab5694415a0c668edb29b76a /tests/backends | |
parent | 9d04711261156c487c6085171398070ea3df8122 (diff) | |
download | django-37470bbd9089b1c64a5783438b42b31336937845.tar.gz |
Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.
Diffstat (limited to 'tests/backends')
-rw-r--r-- | tests/backends/postgresql/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/backends/postgresql/tests.py b/tests/backends/postgresql/tests.py index ce8ed7b4d5..4e15e6843a 100644 --- a/tests/backends/postgresql/tests.py +++ b/tests/backends/postgresql/tests.py @@ -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) |