14 lines
455 B
Python
14 lines
455 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
import tempfile
|
|
from pathlib import Path
|
|
|
|
for _name in list(os.environ):
|
|
if _name.startswith("METRIX_") or _name.startswith("DECOM_DB_") or _name == "DECOM_INLINE_WORKER":
|
|
os.environ.pop(_name)
|
|
|
|
TEST_ROOT = Path(os.environ.get("DECOM_TEST_DATA_DIR") or Path(tempfile.gettempdir()) / "decomeval-pytest")
|
|
os.environ["DECOM_DATA_DIR"] = str(TEST_ROOT / "data")
|
|
os.environ["DECOM_ALLOW_SQLITE"] = "1"
|