Releases: smarie/python-pytest-cases
3.6.1 - bugfix - parametrizing a class with `@parametrize`
- Fixed
ValueError
when@parametrize
is used to parametrize a class. Also, added a more explicitTypeError
when@parametrize
is used to parametrize a class and at least a fixture reference is present. Fixed #215.
See documentation page for details.
3.6.0 - `unpack_fixtures` in classes + `current_cases` improvements
-
The
current_cases
fixture now contains case parameters if any. Fixes #214 -
The
current_cases
fixture entries are now instances ofnamedtuple
. -
New
in_cls
argument inunpack_fixtures
so that it can be used inside classes. Fixes #201 -
Fixed minor issue where empty entries could be present in
currentcases
. Fixes #213
See documentation page for details.
3.5.2 - bugfix with the `currentcases` fixture
- Fixed issues where the
currentcases
fixture would not return the correct case function. Fixed #212
See documentation page for details.
3.5.1 - python 3.10 compatibility + improved error message
- Fixed error message related to misuse of
fixture_ref
. Fixes #209 - Fixed import error with python 3.10. Fixes #207
See documentation page for details.
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.
3.4.6 - Increased compatibility with other plugins
LazyValue
,LazyTuple
andLazyTupleItem
are now hashable. This increases compatibility with plugins hashing the parameter values, such as pytest-steps. See pytest-steps#41 . Fixes #199
See documentation page for details.
3.4.5 - Bugfix
- Fixed bug when a test module containing
@parametrize_with_cases
was executed outside ofpytest
, typically through its__main__
. Fixes #198
See documentation page for details.
3.4.4 - Bugfix
- Fixed issue when
@parametrize_with_cases
was used on a fixture in aconftest.py
. Fixes #196
See documentation page for details.
3.4.3 - Technical release - Zenodo
Technical release to check that Zenodo metadata is now preserved.
Same as 3.4.2, 3.4.1 and 3.4.0.
See documentation page for details.
3.4.2 - Technical release - Zenodo
Technical release to check that Zenodo metadata is now preserved.
Same as 3.4.1 and 3.4.0.
See documentation page for details.