You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the need in #188
Apart from the test id that is a bit fiddled with by pytest, the rest works as expected.
See also this article.
Now does this work with @parametrize_with_cases ? Does it work with @parametrize when there is a fixture_ref ? This needs to be investigated, and possibly, fixed
The text was updated successfully, but these errors were encountered:
A first difficulty, even without adressing fixture_refs and cases, is to include parameter names in this indirect mechanism. Indeed, in pytest fixtures do not support several parameters so using indirect just requires the user to pass the fixture name.
With pytest-case since @fixture is compliant with multiple parametrize (multiple args), then indirect will require users to tell which arg is indirectly parametrized. In other words to pass the fixture name AND the argname(s)
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 the need in #188Indirect parametrization is the answer of pytest to this need. For example :
Leads to
Apart from the test id that is a bit fiddled with by pytest, the rest works as expected.
See also this article.
Now does this work with
@parametrize_with_cases
? Does it work with@parametrize
when there is afixture_ref
? This needs to be investigated, and possibly, fixedThe text was updated successfully, but these errors were encountered: