pytest为常用fixture添加autouse选项
@pytest.fixture(autouse=True) def some(): return 1 def test_someA(): assert True def test_someB(): assert True
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/11390254.html
@pytest.fixture(autouse=True) def some(): return 1 def test_someA(): assert True def test_someB(): assert True
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/11390254.html