Alpha stage commit
This commit is contained in:
13
tests/conftest.py
Normal file
13
tests/conftest.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
TEST_DATA_DIR = Path("./data/test-runtime")
|
||||
|
||||
shutil.rmtree(TEST_DATA_DIR, ignore_errors=True)
|
||||
os.environ["QUEUE_WORKER_AUTOSTART"] = "false"
|
||||
os.environ["DATA_DIR"] = str(TEST_DATA_DIR)
|
||||
os.environ["DATABASE_URL"] = f"sqlite:///{TEST_DATA_DIR / 'test_workbench.sqlite'}"
|
||||
Reference in New Issue
Block a user