pytest使用多个fixture
@pytest.fixture() def some_A(): return 1 @pytest.fixture() def some_B(some_A): return some_A+1 @pytest.fixture() def some_C(some_A,some_B): return some_A+some_B def test_some(some_C): assert some_C==3
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/11390244.html