摘要:
# hook函数的使用方式,# 1放在conftest.py中自动加载,# 2,写在非conftest文件中,命令行中使用-p参数 值为写hook函数的py文件路径 # 第二种方式cmd = 'python3 -m pytest -p pytest_dir1.test_demo2 /Users/ad 阅读全文
摘要:
# 查看所有pytest可以使用的参数 使用内置fixture, pytestconfig def test_01(self, pytestconfig): logging.info(pytestconfig.option) # 获取所有配置信息的值 logging.info(pytestconfi 阅读全文