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

2.3.0

- new `clone(self, remove_int_base=False)` API on `LazyValue` and `LazyTupleItem` instances. With this new API, on old `pytest` `< 5.3`, other plugins such as `pytest-harvest` can easily clone the contents from lazy values without having them inherit from `int` - which was a dirty hack used by `pytest-cases` to trick `pytest` to generate acceptable test ids in these old pytest versions. Also improved the `LazyValue`, `LazyTuple` and `LazyTupleItem` object model with equality and repr. Fixes [pytest-harvest43](https://github.com/smarie/python-pytest-harvest/issues/43)

2.2.5

- Marks set on a case class are now propagated to cases in the class. So you can use for example [`pytest-pilot`](https://smarie.github.io/python-pytest-pilot/) more easily ! Fixes [#139](https://github.com/smarie/python-pytest-cases/issues/139)

2.2.4

- Fixed "Created fixture names are not unique, please report" error when duplicate fixture reference is provided in a pytest.param. Fixes [138](https://github.com/smarie/python-pytest-cases/issues/138).

2.2.3

- Fixed `TypeError: _idval() got an unexpected keyword argument 'item'` with `pytest` versions between 3.0.0 and 3.7.4. Fixed [136](https://github.com/smarie/python-pytest-cases/issues/136)

2.2.2

- `parametrize_with_cases` now supports that `argnames` is a list or tuple, just as `pytest.mark.parametrize` does. PR [132](https://github.com/smarie/python-pytest-cases/pull/132), by [`saroad2`](https://github.com/saroad2).

2.2.1

- Now enforcing usage of `makefun` 1.9.3 or above to avoid issue `AttributeError: 'functools.partial' object has no attribute '__module__'` mentioned in [128](https://github.com/smarie/python-pytest-cases/issues/128)

Page 8 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.