Releases: smarie/python-pytest-cases
3.6.3 - Bugfix
- Fixed an issue where a lazy value would not be resolved. This happens when the "auto-simplify fixture" happens in
@parametrize. Fixes #225
See documentation page for details.
3.6.2 - Qualimetry
- Fixed most
flake8errors and updated documentation to usegenbadge. Fixes #223
See documentation page for details.
3.6.1 - bugfix - parametrizing a class with `@parametrize`
- Fixed
ValueErrorwhen@parametrizeis used to parametrize a class. Also, added a more explicitTypeErrorwhen@parametrizeis 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_casesfixture now contains case parameters if any. Fixes #214 -
The
current_casesfixture entries are now instances ofnamedtuple. -
New
in_clsargument inunpack_fixturesso 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
currentcasesfixture 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_casesfixture. A new helper functionget_current_casesis also provided, for direct access from a hook.get_current_case_idbecomes deprecated in favour of these two. Fixes #195 -
Bugfix: Fixed issue where the cache of a
lazy_valueused 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_plusandfixture_plusare now deprecated in favour ofparametrizeandfixture, 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,LazyTupleandLazyTupleItemare 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_caseswas executed outside ofpytest, typically through its__main__. Fixes #198
See documentation page for details.
3.4.4 - Bugfix
- Fixed issue when
@parametrize_with_caseswas used on a fixture in aconftest.py. Fixes #196
See documentation page for details.