2026-01-29 17:02:09 +08:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def pytest_configure() -> None:
|
|
|
|
|
root = Path(__file__).resolve().parents[2]
|
2026-02-05 15:13:06 +08:00
|
|
|
src_path = root / "backend" / "src"
|
2026-01-29 17:02:09 +08:00
|
|
|
if str(src_path) not in sys.path:
|
2026-02-05 15:13:06 +08:00
|
|
|
sys.path.insert(0, str(src_path))
|