Skip to content

Releases: smarie/python-pytest-cases

1.12.1 - Bugfixes

28 Jan 15:34

Choose a tag to compare

  • Now using module name and not file path to detect symbols in cases files that are imported from elsewhere and not created locally. Indeed that was causing problems on some ^platforms where a .pyc cache file is created. Fixes #72

  • Fixed PluginValidationError when pytest_fixture_plus or pytest_parametrize_plus were used in a conftest.py file. Fixes #71. According to discussion in pytest#6475, pytest_fixture_plus and pytest_parametrize_plus are now renamed to fixture_plus and parametrize_plus in order for pytest (pluggy) not to think they are hooks. Old aliases will stay around for a few versions, with a deprecation warning.

See documentation page for details.

1.12.0 - better test ids for parametrized tests with fixture refs + bugfix

19 Dec 11:57

Choose a tag to compare

  • Improved test ids for the cases where fixture_ref is used in the parameters list in @pytest_parametrize_plus. Fixed #69. Thanks last-partizan for the suggestion !

  • Fixed TypeError: got an unexpected keyword argument 'indirect' with pytest 5+. Fixed #70.

See documentation page for details.

1.11.9 - bugfix

11 Dec 13:32

Choose a tag to compare

FixtureClosureNode is now able to properly handle ignore_args, and now supports that plugins append fixtures to the closure, such as pytest-asyncio. Added corresponding tests. Fixes #68

See documentation page for details.

1.11.8 - bugfix

22 Nov 12:41

Choose a tag to compare

Fixed KeyError issue happening when a fixture is not found. Now users will see the "normal" error message from pytest ("fixture <name> not found"). Fixed #67.

See documentation page for details.

1.11.7 - bugfix

18 Nov 10:08

Choose a tag to compare

Fixed ValueError issue happening with indirectly parametrized fixtures. Fixed #64.

See documentation page for details.

1.11.6 - pyproject.toml

17 Nov 16:09

Choose a tag to compare

raddessi added a pyproject.toml - thanks! Fixed #65.

See documentation page for details.

1.11.5 - bugfix

05 Nov 12:54

Choose a tag to compare

pytest_parametrize_plus was not working correctly with test classes, leading to fixture 'self' not found. Fixed #63.

See documentation page for details.

1.11.4 - python 2 bugfix

23 Oct 14:27

Choose a tag to compare

Fixed issue happening with @pytest.mark.parametrize with python 2. Fixed #62.

See documentation page for details.

1.11.3 - minor improvements

01 Oct 15:06

Choose a tag to compare

Better error message when users use THIS_MODULE in cases= instead of module=.

Added __version__ package-level attribute.

See documentation page for details.

1.11.2 - Increased tolerance to other plugins + bugfix

05 Sep 14:16

Choose a tag to compare

Now when other plugins try to manipulate the fixture closure, warning messages are emitted but no error is raised. Fixed #55.

Also fixed issue #58 happening with doctest.

See documentation page for details.