Skip to content

Releases: smarie/python-pytest-cases

3.8.0 - async, generators and strict-markers

11 Oct 13:27

Choose a tag to compare

  • @fixture and @parametrize are now async and generator aware. Fixes
    #286. PR
    #301 by jgersti.
  • Fixed error with pytest --strict-markers. Fixes
    #283. PR
    #300 by chrsmcgrr.

See documentation page for details.

3.7.0 - python 3.12

10 Oct 21:07
65c1bed

Choose a tag to compare

  • Added official support for Python 3.10, 3.11 and 3.12. Fixes #314
  • Fixed ModuleNotFoundError: distutils on Python 3.12 thanks to packaging. PR
    #312 by @jayqi.
  • Internal: switched to virtualenv backend.

See documentation page for details.

3.6.14 - bugfixes

23 Feb 13:18
ab3b719

Choose a tag to compare

  • Fixed AttributeError issue in is_case_function when an inspected symbol is a parametrized type hint
    without __name__. Fixes #287
  • Fixed issue with get_all_cases: default value for cases was wrong. Fixes #290

See documentation page for details.

3.6.13 - bugfix

20 May 16:14
4f5c466

Choose a tag to compare

  • Fixed issue where a lazy value (for example a case function) was not resolved before being injected in a parametrized function, and was therefore appearing as a _LazyValueCaseParamValue . Fixed #274

See documentation page for details.

3.6.12 - type hint fix + enhanced compatibility with pytest plugins

12 May 09:48
d3cf756

Choose a tag to compare

  • Improved compatibility with other pytest plugins, in particular pytest-repeat, by supporting removal from fixture closure tree. Fixed #269.
  • Fixed type hint errors detected by pyright. Fixed #270

See documentation page for details.

3.6.11 - bugfix for pytest-xdist and `get_all_cases` API improvement

21 Mar 16:10

Choose a tag to compare

  • get_all_cases can now be called without parametrization_target (defaulting to the caller module), and with an explicit module object. Fixed #258. PR #260 by @eddiebergman.
  • Fixed AttributeError: module 'pytest_cases' has no attribute 'CasesCollectionWarning' when running pytest-xdist and at least one cases class is ignored because of __init__ or __new__. Fixed #249.

See documentation page for details.

3.6.10 - bugfix for pytest 7.1

14 Mar 09:40

Choose a tag to compare

See documentation page for details.

3.6.9 - Bugfix with pytest 7

08 Feb 17:37

Choose a tag to compare

See documentation page for details.

3.6.8 - Bugfix: support for multiprocessing Pool

07 Jan 15:03

Choose a tag to compare

  • Suppressed warnings in our own tests, to improve packaging maintenance. Fixed #248
  • Fixed bug where setting ids in @parametrize without setting explicitly idgen=None would raise a ValueError. Fixed #238.
  • Fixed bug where case-holding class marks were not propagated to static methods and class methods. Fixed #246
  • Fixed support for multiprocessing Pool. Fixes #242

See documentation page for details.

3.6.7 - Minor improvements and preparing for pytest 7

03 Jan 09:06

Choose a tag to compare

  • Improved error message when a case function nested in a class has no self argument and is not static. Fixes #243
  • Added support for the new Scopes enum in pytest 7. Fixed #241
  • Fixed __version__ in development mode.

See documentation page for details.