没有被框架pytest认证

PytestUnknownMarkWarning: Unknown pytest.mark.shop_update - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html

    @pytest.mark.shop_update

解决方法:去认证

1.设置--插件中搜索ini,安装插件


2.new file---命名为"pytest.ini"(名字必须是这个)

文件内容为:

[pytest]

markers =

    标签名:(空格)注释  (yaml格式)

    shop : all shop testcase

    shop_list : shop_list

    shop_update : shop_update

你可能感兴趣的:(没有被框架pytest认证)