# tests/conftest.py """Pytest配置""" import sys from pathlib import Path # 添加项目根目录到Python路径 sys.path.insert(0, str(Path(__file__).parent.parent))