summaryrefslogtreecommitdiff
path: root/tests/backends/postgresql/tests.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-05-24 21:23:50 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-05-27 09:49:25 +0200
commitb049bec7cfe9b5854584d240addb44fa1e9375a5 (patch)
tree802915666be8c9429530add0f621a560b5cca6be /tests/backends/postgresql/tests.py
parentbcbc4b9b8a4a47c8e045b060a9860a5c038192de (diff)
Fixed #35479 -- Dropped support for PostgreSQL 13 and PostGIS 3.0.
Diffstat (limited to 'tests/backends/postgresql/tests.py')
-rw-r--r--tests/backends/postgresql/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/backends/postgresql/tests.py b/tests/backends/postgresql/tests.py
index 47f8d94004..0b4f580612 100644
--- a/tests/backends/postgresql/tests.py
+++ b/tests/backends/postgresql/tests.py
@@ -548,12 +548,12 @@ class Tests(TestCase):
def test_get_database_version(self):
new_connection = no_pool_connection()
- new_connection.pg_version = 130009
- self.assertEqual(new_connection.get_database_version(), (13, 9))
+ new_connection.pg_version = 140009
+ self.assertEqual(new_connection.get_database_version(), (14, 9))
- @mock.patch.object(connection, "get_database_version", return_value=(12,))
+ @mock.patch.object(connection, "get_database_version", return_value=(13,))
def test_check_database_version_supported(self, mocked_get_database_version):
- msg = "PostgreSQL 13 or later is required (found 12)."
+ msg = "PostgreSQL 14 or later is required (found 13)."
with self.assertRaisesMessage(NotSupportedError, msg):
connection.check_database_version_supported()
self.assertTrue(mocked_get_database_version.called)