pytes

pytes中fixture的scope: 决定可以在什么范围内共享fixture

1fixture的scope 在@pytest.fixture(scope='xxx')中,scope的可选值有5个,以下是官网的描述 2 function级别的scope 添加如下代码到pytest.ini,便于输出日志 新建conftest.py文件,把fixture函数写入其中,便于后面fix ......
fixture 范围 pytes scope
共1篇  :1/1页 首页上一页1下一页尾页