From 2242bec45017c700e53d8f574c52e76722950e07 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 5 Oct 2020 12:22:16 +0100 Subject: [PATCH] Fix tests --- tests/storage/test_base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/storage/test_base.py b/tests/storage/test_base.py index 40ba652248ce..eac7e4dcd2fa 100644 --- a/tests/storage/test_base.py +++ b/tests/storage/test_base.py @@ -56,6 +56,7 @@ def runWithConnection(func, *args, **kwargs): engine = create_engine(sqlite_config) fake_engine = Mock(wraps=engine) fake_engine.can_native_upsert = False + fake_engine.in_transaction.return_value = False db = DatabasePool(Mock(), Mock(config=sqlite_config), fake_engine) db._db_pool = self.db_pool