[tool.pylint.messages_control] disable = [ "broad-except", "protected-access", "unused-import", "unused-variable", "reimported", "redefined-outer-name", "pointless-string-statement", "unreachable" ] [tool.pytest.ini_options] # pytest 配置:默认从 tests/ 目录收集,仅识别 test_*.py # 当前测试有意写得"轻":业务级冒烟 + 纯函数单元测试,不依赖 ADB / OCR / 设备 testpaths = ["tests"] python_files = ["test_*.py"] python_classes = ["Test*"] python_functions = ["test_*"] # -ra:显示所有非 PASS 的测试结果摘要;-q:精简输出 # --strict-markers:自定义 marker 必须先注册,避免笔误静默通过 addopts = "-ra -q --strict-markers" markers = [ "smoke: 冒烟测试,覆盖业务关键链路的最小用例", "slow: 较慢的测试(>1s),CI 中可单独跑", ]