From cbf7e6269ab91ac618b21643550388c79bad2696 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 7 Apr 2020 18:17:31 +0100 Subject: [PATCH] fix unit tests --- tests/storage/test_database.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/storage/test_database.py b/tests/storage/test_database.py index 53b1d1c7cb..5a77c84962 100644 --- a/tests/storage/test_database.py +++ b/tests/storage/test_database.py @@ -23,7 +23,9 @@ def _stub_db_engine(**kwargs) -> BaseDatabaseEngine: # returns a DatabaseEngine, circumventing the abc mechanism # any kwargs are set as attributes on the class before instantiating it t = type( - "TestBaseDatabaseEngine", (BaseDatabaseEngine,), BaseDatabaseEngine.__dict__, + "TestBaseDatabaseEngine", + (BaseDatabaseEngine,), + dict(BaseDatabaseEngine.__dict__), ) # defeat the abc mechanism t.__abstractmethods__ = set()