Pytest-cases

Latest version: v3.8.6

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

Scan your dependencies

Page 2 of 20

3.8.0

- `fixture` and `parametrize` are now async and generator aware. Fixes
[286](https://github.com/smarie/python-pytest-cases/issues/286). PR
[301](https://github.com/smarie/python-pytest-cases/pull/301) by [jgersti](https://github.com/jgersti).
- Fixed error with `pytest` `--strict-markers`. Fixes
[283](https://github.com/smarie/python-pytest-cases/issues/283). PR
[300](https://github.com/smarie/python-pytest-cases/pull/300) by [chrsmcgrr](https://github.com/chrsmcgrr).

3.7.0 - python 3.12

- 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.

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)

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)

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)

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).

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).

Page 2 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.