Skip to content
Snippets Groups Projects
Commit 3ca3b4a4 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Remove extra steps in init db in coftest

parent 5a84a75e
No related branches found
No related tags found
1 merge request!76Merge parents caches into the current task one
Pipeline #78368 passed
This commit is part of merge request !76. Comments created here will be created in the context of that merge request.
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment