python-pytest-cases icon indicating copy to clipboard operation
python-pytest-cases copied to clipboard

Support the new `idgen` style in `param_fixture`

Open smarie opened this issue 4 years ago • 0 comments
trafficstars

The new **kwargs parametrization style @parametrize(foo=[1, 2]) automatically generates ids foo=1, etc.

This is not yet supported in param_fixture[s], maybe we should add it.

Current workaround is to use @parametrize on an identity @fixture

@fixture
@parametrize(foo=[1,2])
def foo(foo):
    return foo

smarie avatar Apr 07 '21 08:04 smarie