Skip to content

Releases: smarie/python-pytest-cases

3.6.1 - bugfix - parametrizing a class with `@parametrize`

03 Jun 15:35
Compare
Choose a tag to compare
  • Fixed ValueError when @parametrize is used to parametrize a class. Also, added a more explicit TypeError 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

31 May 19:38
Compare
Choose a tag to compare
  • The current_cases fixture now contains case parameters if any. Fixes #214

  • The current_cases fixture entries are now instances of namedtuple.

  • New in_cls argument in unpack_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

21 May 13:07
Compare
Choose a tag to compare
  • 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

18 May 13:41
Compare
Choose a tag to compare
  • 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

07 May 09:52
Compare
Choose a tag to compare
  • New: Users can now easily access the current cases for each parametrized argument thanks to the new current_cases fixture. A new helper function get_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 (several argnames) 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 and fixture_plus are now deprecated in favour of parametrize and fixture, as most users seem to have adopted these names without issues.

  • (internal) Replaced the "used" parameter with a dedicated singleton USED

See documentation page for details.

3.4.6 - Increased compatibility with other plugins

12 Apr 10:05
Compare
Choose a tag to compare
  • LazyValue, LazyTuple and LazyTupleItem 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

07 Apr 16:15
Compare
Choose a tag to compare
  • Fixed bug when a test module containing @parametrize_with_cases was executed outside of pytest, typically through its __main__. Fixes #198

See documentation page for details.

3.4.4 - Bugfix

07 Apr 09:17
Compare
Choose a tag to compare
  • Fixed issue when @parametrize_with_cases was used on a fixture in a conftest.py. Fixes #196

See documentation page for details.

3.4.3 - Technical release - Zenodo

31 Mar 13:55
Compare
Choose a tag to compare

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

31 Mar 13:04
Compare
Choose a tag to compare

Technical release to check that Zenodo metadata is now preserved.
Same as 3.4.1 and 3.4.0.

See documentation page for details.