diff --git a/tests/conftest.py b/tests/conftest.py index a552ef27ef6665d9238cd73c3ad773e8bdfa74e0..f1c2b108f23528df65819474125e0af89d33f02a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -302,10 +302,10 @@ def mock_databases(tmpdir): filename = "db_42.sqlite" if name == "chunk_42" else "db.sqlite" path = tmpdir / name / filename (tmpdir / name).mkdir() - local_db = SqliteDatabase(None) - local_db.init(path, pragmas={}) - local_db.connect() + local_db = SqliteDatabase(path) with local_db.bind_ctx(MODELS): + # Create tables on the current local database + # by binding temporarily the models on that database local_db.create_tables(MODELS) out[name] = {"path": path, "db": local_db}