[pytest] # 把项目根目录加入 sys.path,让测试里能 from src.xxx import ... pythonpath = . testpaths = tests