Add test for wal mode

This commit is contained in:
Matthias
2022-02-22 19:39:55 +01:00
parent 02ce0dc02e
commit 1f9ed0beff
2 changed files with 11 additions and 3 deletions

View File

@@ -39,6 +39,9 @@ def init_db(db_url: str, clean_open_orders: bool = False) -> None:
"""
kwargs = {}
if db_url == 'sqlite:///':
raise OperationalException(
f'Bad db-url {db_url}. For in-memory database, please use `sqlite://`.')
if db_url == 'sqlite://':
kwargs.update({
'poolclass': StaticPool,