#coding:utf-8

import os

cmd = "pytest -v -m \"not webtest\""

os.system(cmd)

 

通过os.system执行cmd命令(pytest -v -m "not webtest"),因为cmd命令中有双引号,随意要加转义符\

相关文章:

  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-23
相关资源
相似解决方案