refactor: 本地只保存工号和加密密码,并整理后端目录

This commit is contained in:
2026-10-26 16:52:29 +08:00
parent c2b0a0f2e2
commit ce3b924b92
26 changed files with 237 additions and 442 deletions
+10
View File
@@ -0,0 +1,10 @@
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")