From 3ca3b4a4f92c732cd742593b4446171536bb8276 Mon Sep 17 00:00:00 2001 From: Bastien Abadie <bastien@nextcairn.com> Date: Tue, 30 Mar 2021 11:40:56 +0200 Subject: [PATCH] Remove extra steps in init db in coftest --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index a552ef27..f1c2b108 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} -- GitLab