1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #35412 -- Dropped support for SQLite < 3.31.

This commit is contained in:
Mariusz Felisiak
2024-04-28 18:22:21 +02:00
committed by Sarah Boyce
parent 8c257cecff
commit 85c154da2f
5 changed files with 12 additions and 13 deletions

View File

@@ -109,9 +109,9 @@ class Tests(TestCase):
connections["default"].close()
self.assertTrue(os.path.isfile(os.path.join(tmp, "test.db")))
@mock.patch.object(connection, "get_database_version", return_value=(3, 26))
@mock.patch.object(connection, "get_database_version", return_value=(3, 30))
def test_check_database_version_supported(self, mocked_get_database_version):
msg = "SQLite 3.27 or later is required (found 3.26)."
msg = "SQLite 3.31 or later is required (found 3.30)."
with self.assertRaisesMessage(NotSupportedError, msg):
connection.check_database_version_supported()
self.assertTrue(mocked_get_database_version.called)