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

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

12
tests/conftest.py Normal file
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)