私のconftest.py
ファイルには、3 つのパラメータを持つフィクスチャがあります。
@pytest.fixture(scope="session",
params=[(33, 303), (303, 3003), (3003, 300003)],
ids=["small", "medium", "large"])
def complete(request):
np.random.seed(1234567890)
return np.random.rand(*request.param)
特定の長期実行テスト機能では、「大きな」ケースをスキップしたいと思います。
@pytest.mark.skipif(...)
def test_snafu(complete):
assert ...
これはどういうわけか可能ですか?