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

Separate test code from test cases in pytest.

Results 65 python-pytest-cases issues
Sort by recently updated
recently updated
newest added
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`...

pytest-goodies

Sometimes a fixture is parametrized with cases using `@parametrize_with_cases`, but for a specific test one would like to only select a subset of these cases. This would for example solve...

new_feature

As noted in #158 , since 3.0.0 all parametrized cases are turned into fixtures. This ensures solid support for all kind of complex nesting and fixtures depenencies. However maybe we...

performance

session-scoped fixtures are not guaranteed to be unique by session, and module-scoped fixtures are not guaranteed to be unique for an unique parameter, in pytest. See pytest-dev/pytest#2846 We could at...

pytest-goodies
new_feature

The latest developments about test ids uniformization, as well as #146 and https://github.com/pytest-dev/pytest/issues/8155, made me realize that maybe the fixture union engine could be extended to natively support hybrid param+fixture...

As discussed in #158 (in particular https://github.com/smarie/python-pytest-cases/issues/158#issuecomment-747710915 and https://github.com/smarie/python-pytest-cases/issues/158#issuecomment-747942419), when a fixture is created for a parametrized case, if that case is used in a test that lies in a...

bug
has_workaround

This is a minor issue as it seems to have no impact on the tests run. Passing all parameters in the same parametrization, where at least one of them is...

pytest-goodies

Fixes #330 (in progress, see https://github.com/smarie/python-pytest-cases/issues/333#issuecomment-1974832967_)

Work in progress to make things work with pytest 8. @smarie feel free to close or take over!