fix unit tests

pull/7193/head
Richard van der Hoff 2020-04-07 18:17:31 +01:00
parent 00955dcdab
commit cbf7e6269a
1 changed files with 3 additions and 1 deletions

View File

@ -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()