Skip to content

Releases: smarie/python-pytest-cases

1.6.2 - bug fixes

05 Apr 19:43
Compare
Choose a tag to compare

fixture_union:

  • Changed the repr of NOT_USED to pytest_cases.NOT_USED.

  • @pytest_fixture_plus now correctly handles the NOT_USED when fixtures in the union do not contain any parameter. Fixes #38.

param_fixtures:

  • param_fixtures now delegates to param_fixture when a single parameter name is provided. This is more consistent. Fixed #36.

  • param_fixture[s] now support all arguments from fixture (scope and autouse in particular).

See documentation page for details.

1.6.1 - `@pytest_fixture_plus` improvement to handle `NOT_USED` cases

03 Apr 17:21
Compare
Choose a tag to compare

Fixed issue where fixtures get called with NOT_USED as a parameter when using a fixture_union. This issue is actually only fixed in @pytest_fixture_plus, if you use @pytest.fixture you have to handle it manually. Fixes #37

See documentation page for details.

1.6.0 - `fixture_union` and `param_fixture[s]` bugfix

03 Apr 16:01
Compare
Choose a tag to compare

New fixture_union method to create a fixture that is the union/combination of other fixtures. This is an attempt to solve this pytest proposal.

Also, param_fixture and param_fixtures can now be used without necessarily storing the return value into a variable: they will automatically register the created fixtures in the calling module.

Finally, fixed a bug with param_fixtures when called to create a fixture for a single parameter.

See documentation page for details.

1.5.1 - `param_fixtures` bugfix

26 Mar 12:20
Compare
Choose a tag to compare

Fixed param_fixtures issue: all parameter values were identical to the last parameter of the tuple. Fixes #32.

See documentation page for details.

1.5.0 - new helpers `param_fixture` and `param_fixtures`

25 Mar 11:01
Compare
Choose a tag to compare

Following Sup3rGeo's proposal, introduced two helper methods to create simple "parameter fixtures". Fixes #31

See documentation page for details.

1.4.2 - parametrized `@pytest_fixture_plus` minor bug fix

25 Mar 09:40
Compare
Choose a tag to compare

@pytest_fixture_plus now correctly honors parameter id and marks overriden at single parameter level using pytest.param. Fixed #30

See documentation page for details.

1.4.1 - parametrized `@pytest_fixture_plus` minor bug fix

22 Mar 13:22
Compare
Choose a tag to compare

Fixed @pytest_fixture_plus in case it is used with parametrize and one parameter is itself customized using pytest.param. Fixed #29.

See documentation page for details.

1.4.0 - `@pytest_fixture_plus` major improvement

20 Mar 13:15
Compare
Choose a tag to compare
  • Major improvement of @pytest_fixture_plus: instead of generating fixtures, it now correctly parametrizes the fixture. Skip/fail Marks are correctly copied too. Fixes #28

  • pytest_fixture_plus does not accept the params and ids arguments any more, it only relies on parametrization marks.

See documentation page for details.

1.3.3 - parametrized `@pytest_fixture_plus` Bugfix

19 Mar 17:38
Compare
Choose a tag to compare

Fixed minor bug with parametrized @pytest_fixture_plus: spaces are now correctly removed when multiple parameter names are provided in the same parametrize call. Fixes #27

See documentation page for details.

1.3.2 - parametrized `@pytest_fixture_plus` Bugfix

19 Mar 10:19
Compare
Choose a tag to compare

Fixed bug with @pytest_fixture_plus when used in parametrized mode. Fixes #26. Thanks Sup3rGeo!

See documentation page for details.