Releases: smarie/python-pytest-cases
2.2.2 - `@parametrize_with_cases` compatibility improvements
@parametrize_with_casesnow supports thatargnamesis a list or tuple, just as@pytest.mark.parametrizedoes. PR #132, by@saroad2.
See documentation page for details.
2.2.1 - setup.py fix to enforce dependency version
- Now enforcing usage of
makefun1.9.3 or above to avoid issueAttributeError: 'functools.partial' object has no attribute '__module__'mentioned in #128
See documentation page for details.
2.2.0 - Doc improvements + bugfix for cases requiring fixtures
-
Improved documentation to explain why
@fixtureshould be used instead of@pytest.fixture. Fixed #125 -
Fixed
ValueError: fixture is being applied more than once to the same functionwhen two functions parametrized with the same cases were sitting in the same file. Improved robustness when cases require fixtures, in particular when parametrized test/fixture sits in a class or when several of them sit in a class/module. Fixed #126
See documentation page for details.
2.1.3 - Missing deprecation warning
-
Added missing deprecation warning on
@cases_generator. Fixes #124. -
Removed
targetandtagsarguments of@cases_generator(deprecated api anyway) that were added by mistake in version 2.0.0 but never used.
See documentation page for details.
2.1.2 - Compatibility fix
- Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins such as
pytest-blackorpytest-flake8. Fixes #122
See documentation page for details.
2.1.0 - Internal engine improvements + bugfixes
Fixed issue with @parametrize_with_cases when two cases with the same id and both requiring a fixture were to be created. Fixed #117.
Fixture closure engine refactoring:
-
When no fixture unions are present, the fixture closure is now identical to the default one in
pytest, to avoid issues originating from other plugins fiddling with the closure. Fixes #116 -
New
SuperClosureclass representing the "list" facade on top of the fixture tree (instead ofFixtureClosureNode). In addition, this list facade now better handles editing the order of fixtures when possible. Fixes #111. -
Session and Module-scoped fixtures that are not used in all union alternatives are not any more torn town/setup across union alternatives. Fixes #120
See documentation page for details.
2.0.4 - Bugfix
- Fixed
TypeErrorwith iterable argvalue in standard parametrize. Fixed #115.
See documentation page for details.
2.0.3 - Bugfixes
-
Fixed wrong module string decomposition when passed to
casesargument in@parametrize_with_cases. Fixes #113 -
Autouse fixtures are now correctly used. Fixed #114
See documentation page for details.
2.0.2 - Better string representation for lazy values
Lazy values (so, test cases) now have a much nicer string representation ; in particular in pytest-harvest results tables. Fixes #112
See documentation page for details.
2.0.1 - Better test ids and theory page
-
New documentation page concerning theory of fixture unions. Fixes #109
-
Using a
fixture_refin a new-style@parametrize(with**argsoridgen) now outputs a correct id. Fixes #110
See documentation page for details.