找了好多 都是说拼写错误 查了代码 发现并没有写错 原来是在pytest.ini 中错误演示
改成 就可以了
[pytest]
python_file = ‘test_.py’ #文件识别规则
python_classes = 'Test’ #类识别规则
python_functions = ‘test*’ #方法识别规则
【无标题】collecting ... collected 0 items pytest解决方法
最新推荐文章于 2023-07-23 17:12:17 发布
找了好多 都是说拼写错误 查了代码 发现并没有写错 原来是在pytest.ini 中错误演示
改成 就可以了
[pytest]
python_file = ‘test_.py’ #文件识别规则
python_classes = 'Test’ #类识别规则
python_functions = ‘test*’ #方法识别规则