pytest框架通过打标签执行测试用例报PytestUnknownMarkWarning: Unknown pytest.mark.login_success - is this a typo?解决方案[TOC]
添加pytest.int 配置文件
这个方法单个标签和多个标签都适用
[pytest]
markers = testmark1
testmark2
testmark3
在你项目的任意一个文件下,新建一个file,文件命名为pytest.int,如图运行后警告就没有了
来源:CSDN
作者:阿望在呢
链接:https://blog.csdn.net/weixin_41955664/article/details/103730580