解决:PytestUnknownMarkWarning: Unknown pytest.mark.webtest - is this a typo?
作者:互联网
解决办法1:
新建一个配置文件pytest.ini,设置参数
[pytest]
markers=webtest
webtests
解决办法2:
新建一个配置文件pytest.ini,设置参数
[pytest]
markers=
webtest:mark a test as a webtest.
slow:mark test as slow.
T2:mark test as slow.
解决办法3:
新建一个配置文件pytest.ini,设置参数
[pytest]
markers = test1
test2
test3
解决办法4:
新建一个配置文件pytest.ini,设置参数
[pytest]
markers = run_these_please
解决办法5:
新建一个配置文件pytest.ini,设置参数
[pytest]
markers =
webtest: mark a test as a webtest.
解决办法6:
新建一个配置文件pytest.ini,设置参数
[pytest]
markers=welcome #markers=标签名
login
标签:PytestUnknownMarkWarning,配置文件,Unknown,webtest,markers,mark,pytest,ini 来源: https://blog.csdn.net/weixin_46731640/article/details/119214666