fix(test/endpoints): add pytest coverage for all Microdot routes

This commit is contained in:
pi committed 2026-03-26 00:39:41 +13:00
1 parent 63235c7822
commit fed312a397
9 files changed
+996 -123

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
from pathlib import Path
import sys
PROJECT_ROOT = Path(__file__).resolve().parents[1]
SRC_PATH = PROJECT_ROOT / "src"
LIB_PATH = PROJECT_ROOT / "lib"
for p in (str(SRC_PATH), str(LIB_PATH), str(PROJECT_ROOT)):
if p in sys.path:
sys.path.remove(p)
sys.path.insert(0, p)