Releases: smarie/python-pytest-cases
1.10.1 - Bugfix
Fixed #52.
See documentation page for details.
1.10.0 - New feature: fixtures unpacking
You can now unpack a fixture iterable into several individual fixtures using unpack_fixture
or using @pytest_fixture_plus(unpack_into=<names>)
. This is also available in union_fixture(unpack_into=<names>)
. Fixed #50 and #51.
See documentation page for details.
1.9.3 - Bugfix
Fixed issues when parametrize argnames contains a list. This fixed #49
See documentation page for details.
1.9.2 - Bugfix with pytest 3.7
Fixed #48.
See documentation page for details.
1.9.1 - Bugfix
Fixed #48.
See documentation page for details.
1.9.0 - New `--with-reorder` commandline option
New commandline option '--with-reorder' to change the reordering startegy currently in application. Fixes #45.
The --with-reorder
"skip" mode was not working correctly in presence of marks, fixed it. Fixed #46.
See documentation page for details.
1.8.1 - BugFixes
Ids should not be used when setting a NOT_USED parametrization. Fixes #43
Fixed issue with ordering and setup/teardown for higher-level scope fixtures (session and module scopes) when using union fixtures. Fixes #44
See documentation page for details.
1.8.0 - Better ids for fixture unions
New:
fixture_union
now accept a non-None
value forids
. It also has a newidstyle
argument allowing users to change the style of ids used. Finallypytest_parametrize_plus
relies on thisids
argument to set a more readable list of ids for the created union. Fixes #41.
Misc:
- Added non-regression test for fixture order. It passes already for all recent pytest versions (after 3.3). Fixes #42
See documentation page for details.
1.7.0 - New `@pytest_parametrize_plus` allowing fixture references to be used in parameter values
New decorator @pytest_parametrize_plus
able to handle the case where a fixture_ref(<fixture_name>)
is present in the parameter values list. This decorator can be applied both on test functions and fixtures (if they are decorated with @pytest_fixture_plus
). Fixes #40
Major refactoring of the "union fixtures" mechanism.
- The
NOT_USED
status is now correctly propagated between dependent fixtures. This should fix a few cases where user fixtures were setup/teardown while not used in the current test node. - Empty fixture unions are not permitted anymore.
- The way unions are handled in test parametrization was redesigned. The new design is based on a two-steps approach: first build the fixture closure for each node as a tree (and not a list as in
pytest
), and then apply parametrization intelligently based on this tree structure. This fixes several unintuitive behaviours that were happening with unions.
Note: interestingly this also fixes pytest#5054.
See documentation page for details.
1.6.3 - Minor exception enhancement
Improved the error message when the name template is wrong in @cases_generator
. Fixes #39.
See documentation page for details.