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 5 of 20

3.4.6

- `LazyValue`, `LazyTuple` and `LazyTupleItem` are now hashable. This increases compatibility with plugins hashing the parameter values, such as pytest-steps. See [pytest-steps41](https://github.com/smarie/python-pytest-steps/issues/41) . Fixes [#199](https://github.com/smarie/python-pytest-cases/issues/199)

3.4.5

- Fixed bug when a test module containing `parametrize_with_cases` was executed outside of `pytest`, typically through its `__main__`. Fixes [198](https://github.com/smarie/python-pytest-cases/issues/198)

3.4.4

- Fixed issue when `parametrize_with_cases` was used on a fixture in a `conftest.py`. Fixes [196](https://github.com/smarie/python-pytest-cases/issues/196)

3.4.3

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

3.4.0

- Legacy v1 API was dropped. Fixes [192](https://github.com/smarie/python-pytest-cases/issues/192)

- Unbound case functions in a class (e.g. `Foo.bar`) can now be directly passed to `parametrize_with_cases` without instantiating the class, e.g. `parametrize_with_cases(cases=Foo.bar)`. Fixes [159](https://github.com/smarie/python-pytest-cases/issues/159)

- Fixed bug with concatenation of marks on cases. Fixes [191](https://github.com/smarie/python-pytest-cases/issues/191)

- Fixed an issue where a case transformed into a fixture, with the same name as the fixture it requires, would lead to a `pytest` fixture recursion.

- Fixtures in case files can now be automatically imported using the **experimental** `parametrize_with_cases(import_fixtures=True)`. Fixes [193](https://github.com/smarie/python-pytest-cases/issues/193)

3.3.0

- Migrated to Github Actions + `nox` for CI/CD.

- New helper function `get_current_case_id` to get the current case id for a given `pytest` request or item. Fixes [189](https://github.com/smarie/python-pytest-cases/issues/189)

- Extended the support of fixture closure modifications to `remove` and `insert(0, f)`. This in particular solves an issue with `pytest-asyncio`. Fixes [176](https://github.com/smarie/python-pytest-cases/issues/176)

- New `filters` module providing helper functions `has_tag`, `id_has_prefix`, `id_has_suffix`, `id_match_regex` to easily create custom filters for use in `parametrize_with_cases(filter=...)`. PR [184](https://github.com/smarie/python-pytest-cases/pull/184) by [saroad2](https://github.com/saroad2), (thanks !).

Page 5 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.