ps:笔者python版本为: 3.8.0,pytest版本为:6.1.1

1.新建pytest.ini文件,可能需要导入一些乱七八糟的东西,按IDE提示走就行

2.在pytest.ini的文件下填写下面2行内容:

[pytest]

addopts = -p no:warnings

3.运行pytest case,警告就消失了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2021-09-18
猜你喜欢
  • 2022-01-05
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案