3.5.0 - New `current_cases` fixture and `get_current_cases` function + Fixes
-
New: Users can now easily access the current cases for each parametrized argument thanks to the new
current_cases
fixture. A new helper functionget_current_cases
is also provided, for direct access from a hook.get_current_case_id
becomes deprecated in favour of these two. Fixes #195 -
Bugfix: Fixed issue where the cache of a
lazy_value
used for a tuple of parameters (severalargnames
) was not considering the pytest context and thus was wrongly used across pytest nodes. Fixes #202 -
Improved error message when a fixture parametrized with several argnames as once is not able to unpack the parameter values received (non subscriptable object).
-
parametrize_plus
andfixture_plus
are now deprecated in favour ofparametrize
andfixture
, as most users seem to have adopted these names without issues. -
(internal) Replaced the
"used"
parameter with a dedicated singletonUSED
See documentation page for details.