1
は、私は3つのパラメータを持っている私のconftest.py
ファイル内の備品を持っている: フィクスチャパラメータIDに基づいてpytest.mark.skipifを使用できますか?
@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 ...
これはどういうことですか?