Skip to content

Releases: smarie/python-pytest-cases

2.2.2 - `@parametrize_with_cases` compatibility improvements

08 Sep 09:23
Compare
Choose a tag to compare
  • @parametrize_with_cases now supports that argnames is a list or tuple, just as @pytest.mark.parametrize does. PR #132, by @saroad2.

See documentation page for details.

2.2.1 - setup.py fix to enforce dependency version

20 Aug 14:09
Compare
Choose a tag to compare
  • Now enforcing usage of makefun 1.9.3 or above to avoid issue AttributeError: '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

19 Aug 16:35
Compare
Choose a tag to compare
  • Improved documentation to explain why @fixture should be used instead of @pytest.fixture. Fixed #125

  • Fixed ValueError: fixture is being applied more than once to the same function when 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

12 Aug 08:48
Compare
Choose a tag to compare
  • Added missing deprecation warning on @cases_generator. Fixes #124.

  • Removed target and tags arguments 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

10 Aug 08:00
Compare
Choose a tag to compare
  • Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins such as pytest-black or pytest-flake8. Fixes #122

See documentation page for details.

2.1.0 - Internal engine improvements + bugfixes

29 Jul 17:15
Compare
Choose a tag to compare

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 SuperClosure class representing the "list" facade on top of the fixture tree (instead of FixtureClosureNode). 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

12 Jul 21:27
Compare
Choose a tag to compare
  • Fixed TypeError with iterable argvalue in standard parametrize. Fixed #115.

See documentation page for details.

2.0.3 - Bugfixes

10 Jul 15:08
Compare
Choose a tag to compare
  • Fixed wrong module string decomposition when passed to cases argument 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

09 Jul 22:14
Compare
Choose a tag to compare

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

09 Jul 14:06
Compare
Choose a tag to compare
  • New documentation page concerning theory of fixture unions. Fixes #109

  • Using a fixture_ref in a new-style @parametrize (with **args or idgen) now outputs a correct id. Fixes #110

See documentation page for details.