1.关于pytest.fixture
@pytest.fixture(scope="module", autouse=True)
其中autouse=True,作用域默认是function,加了scope=module之后作用域就是module
运行结果:
2.conftest.py文件中是不能写class的 !注意??
pytest框架的一些补充
原文:https://www.cnblogs.com/zhaikunkun/p/12813672.html