报错如下

运行pytest报错“PytestUnknownMarkWarning: Unknown pytest.mark.file - is this a typo? ”

 

解决方案 :

在项目的任意文件夹下创建pytest.ini文件,写入内容:

[pytest]
filterwarnings =
    ignore::UserWarning

或者

[pytest]
filterwarnings =
    error
    ignore::UserWarning

 

相关文章:

  • 2021-05-21
  • 2021-10-09
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
相关资源
相似解决方案