【pytest】新增命令行参数时配置文件命名错误

问题:运行pytest -s test_case.py --project='test'报fixture 'project' not found?如下图:


原因:conftest.py配置文件命名错误;重新命令即可

你可能感兴趣的:(【pytest】新增命令行参数时配置文件命名错误)