Parametrize tests
Single argument
@pytest.mark.parametrize("color", ["red", "blue", "green"], id=str)
Multiple arguments
@pytest.mark.parametrize("height,width", [(20, 30), (40, 10)], id=str)
Custom human readable ids
@pytest.mark.parametrize(
"height,width",
[
(10, 5),
(400, 200)
],
ids=[
'small size',
'big size'
]
)
Backlinks