没有被框架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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容