conftest.py 234 B

1234567891011
  1. """测试路径配置。"""
  2. from __future__ import annotations
  3. import sys
  4. from pathlib import Path
  5. PROJECT_ROOT = Path(__file__).resolve().parents[1]
  6. if str(PROJECT_ROOT) not in sys.path:
  7. sys.path.insert(0, str(PROJECT_ROOT))