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