Skip to content

Releases: smarie/python-pytest-cases

1.10.1 - Bugfix

03 Jul 12:04
Compare
Choose a tag to compare

Fixed #52.

See documentation page for details.

1.10.0 - New feature: fixtures unpacking

03 Jul 11:03
Compare
Choose a tag to compare

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

27 Jun 17:04
Compare
Choose a tag to compare

Fixed issues when parametrize argnames contains a list. This fixed #49

See documentation page for details.

1.9.2 - Bugfix with pytest 3.7

25 Jun 11:40
Compare
Choose a tag to compare

1.9.1 - Bugfix

25 Jun 11:11
Compare
Choose a tag to compare

Fixed #48.

See documentation page for details.

1.9.0 - New `--with-reorder` commandline option

17 Jun 14:28
Compare
Choose a tag to compare

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

14 Jun 16:44
Compare
Choose a tag to compare

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

14 Jun 11:12
Compare
Choose a tag to compare

New:

  • fixture_union now accept a non-None value for ids. It also has a new idstyle argument allowing users to change the style of ids used. Finally pytest_parametrize_plus relies on this ids 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

13 Jun 17:00
Compare
Choose a tag to compare

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

28 May 17:41
Compare
Choose a tag to compare

Improved the error message when the name template is wrong in @cases_generator. Fixes #39.

See documentation page for details.