"""pytest 公用 fixtures / 路径配置""" import sys from pathlib import Path # 确保 `from src...` 在 tests 中可用,无需安装 ROOT = Path(__file__).resolve().parent.parent if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT))