[pytest] pythonpath = . apps/api apps/worker testpaths = tests # ===== 覆盖率配置 ===== # 覆盖率统计范围(供 --cov 使用时的默认源) # 注意:addopts 不默认开启 --cov,避免影响本地开发调试 # CI 中通过命令行参数显式开启:--cov=apps --cov-report=term --cov-report=xml --cov-fail-under=50