Releases: smarie/python-pytest-cases
Releases · smarie/python-pytest-cases
3.6.14 - bugfixes
- Fixed
AttributeErrorissue inis_case_functionwhen an inspected symbol is a parametrized type hint
without__name__. Fixes #287 - Fixed issue with
get_all_cases: default value forcaseswas wrong. Fixes #290
See documentation page for details.
3.6.13 - bugfix
- 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
- Improved compatibility with other
pytestplugins, in particularpytest-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
get_all_casescan now be called withoutparametrization_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 runningpytest-xdistand 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
- Fixed
ImportErrorwhen usingpytest 7.1. Fixed #264 and pytest-dev#9762.
See documentation page for details.
3.6.9 - Bugfix with pytest 7
See documentation page for details.
3.6.8 - Bugfix: support for multiprocessing Pool
- Suppressed warnings in our own tests, to improve packaging maintenance. Fixed #248
- Fixed bug where setting
idsin@parametrizewithout setting explicitlyidgen=Nonewould raise aValueError. 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
- Improved error message when a case function nested in a class has no
selfargument 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.
3.6.5 - Bugfix
- Fixed an issue where using keyword
argnamesin@pytest.mark.parametrizewould causeIndexError: tuple index out of rangein the tests collection phase. Fixed #234.
See documentation page for details.
3.6.4 - Bugfix
- A case id can now be a reserved keyword without triggering any
SyntaxError, even if the case is transformed into a fixture. Fixes #230
See documentation page for details.