11 lines
318 B
Python
11 lines
318 B
Python
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
_backend = Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0, str(_backend))
|
|
_root = _backend.parent / "Temp" / "pytest"
|
|
_root.mkdir(parents=True, exist_ok=True)
|
|
os.environ["EUNIV_SECRET_KEY"] = "test-secret-key"
|
|
os.environ["EUNIV_DB_PATH"] = str(_root / "euniv.db")
|