In the following @pytest.mark.parametrize(..., ids=[val]) the ID values are only allowed to be `str`, `float`, `int` or `bool`. In the following @pytest.mark.parametrize(..., [val]) @pytest.mark.parametrize(..., [pytest.param(..., id=val]) a different code path is used, which also allows `bytes`, `complex`, `re.Pattern`, `Enum` and anything with a `__name__`. In the interest of consistency, use the latter code path for all cases. |
||
---|---|---|
.. | ||
approx.py | ||
collect.py | ||
fixtures.py | ||
integration.py | ||
metafunc.py | ||
raises.py | ||
show_fixtures_per_test.py |