Pytest-cases

Latest version: v3.8.5

Safety actively analyzes 630130 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 18

3.7.0

- Added official support for Python 3.10, 3.11 and 3.12. Fixes [314](https://github.com/smarie/python-pytest-cases/issues/314)
- Fixed `ModuleNotFoundError: distutils` on Python 3.12 thanks to `packaging`. PR
[312](https://github.com/smarie/python-pytest-cases/pull/312) by [jayqi](https://github.com/jayqi).
- Internal: switched to virtualenv backend.

See [documentation page](https://smarie.github.io/python-pytest-cases/changelog) for details.

3.6.14

- Fixed `AttributeError` issue in `is_case_function` when an inspected symbol is a parametrized type hint
without `__name__`. Fixes [287](https://github.com/smarie/python-pytest-cases/issues/287)
- Fixed issue with `get_all_cases`: default value for `cases` was wrong. Fixes [290](https://github.com/smarie/python-pytest-cases/issues/290)

See [documentation page](https://smarie.github.io/python-pytest-cases/changelog) for details.

3.6.13

- 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](https://github.com/smarie/python-pytest-cases/issues/274)

See [documentation page](https://smarie.github.io/python-pytest-cases/changelog) for details.

3.6.12

- Improved compatibility with other `pytest` plugins, in particular `pytest-repeat`, by supporting removal from fixture closure tree. Fixed [269](https://github.com/smarie/python-pytest-cases/issues/269).
- Fixed type hint errors detected by `pyright`. Fixed [270](https://github.com/smarie/python-pytest-cases/issues/270)

See [documentation page](https://smarie.github.io/python-pytest-cases/changelog) for details.

3.6.11

- `get_all_cases` can now be called without `parametrization_target` (defaulting to the caller module), and with an explicit module object. Fixed [258](https://github.com/smarie/python-pytest-cases/issues/258). PR [#260](https://github.com/smarie/python-pytest-cases/pull/260) by [eddiebergman](https://github.com/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](https://github.com/smarie/python-pytest-cases/issues/249).

See [documentation page](https://smarie.github.io/python-pytest-cases/changelog) for details.

3.6.10

- Fixed `ImportError` when using `pytest 7.1`. Fixed [264](https://github.com/smarie/python-pytest-cases/issues/264) and [pytest-dev#9762](https://github.com/pytest-dev/pytest/issues/9762).

See [documentation page](https://smarie.github.io/python-pytest-cases/changelog) for details.

Page 2 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.