pytest问题笔记一:mark 警告 PytestUnknownMarkWarning: Unknown pytest.mark.
运行用例的时候,老是弹出警告 PytestUnknownMarkWarning: Unknown pytest.mark.run_these_pl ease - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html warnings.warn( -- Docs: https://docs.pytest.org/en/latest/warnings.html ================================================================== 1 warning in 0.28s ================================================================== 尝试了其他博主的三种方式( https://www.cnblogs.com/zzllovehappy/p/11270933.html ),只有以下方法生效了,以此记录 新增一个配置ini文件,并在文件中输入: [pytest] markers = run_these_please #标记名称 来源: CSDN 作者: