[pytest] testpaths = tests python_files = *_test.py test_*.py ; 与运行链路 utils/pytest.ini 同口径:各包存在同名测试文件(如 config_test.py), ; importlib 模式避免按裸模块名导入时的 basename 冲突。 addopts = --import-mode=importlib