Skip to content

Releases: smarie/python-pytest-harvest

1.8.0 - pytest-xdist compliance

13 Feb 17:30
Compare
Choose a tag to compare
  • For each of the [module/session]_results_[dct/df] fixtures, an equivalent get_<fixture_name>(session, ...) helper function is available. This allows users to access the same level of functionality than the fixture, in places where fixtures are not available (typically in a pytest hook such as the pytest_sessionfinish session finish hook). In addition the default FIXTURE_STORE is now a package variable, available directly or through the session-scoped fixture_store fixture. Fixed #33 and #34.

  • Added an example in the documentation on how to use with pytest-xdist. Fixes #32

See documentation page for details.

1.7.4 - `pyproject.toml`

18 Nov 10:54
Compare
Choose a tag to compare

Added a pyproject.toml file.

See documentation page for details.

1.7.3 - python 2 bugfix

23 Oct 15:25
Compare
Choose a tag to compare

Fixed issue happening with python 2 when unicode_literals are used in the parameters receiving string types. Fixed #28

See documentation page for details.

1.7.2 - added `__version__` attribute

01 Oct 14:50
Compare
Choose a tag to compare

Added __version__ attribute at package level.

See documentation page for details.

1.7.1 - added `six` dependency

02 Aug 12:32
Compare
Choose a tag to compare

It was missing from setup.py.

See documentation page for details.

1.7.0 - `@saved_fixture` supports all scopes

21 May 20:24
Compare
Choose a tag to compare
  • Session-scoped and Module-scoped fixtures are now supported by @saved_fixture. Fixes #17.

  • Documentation: new API reference page.

See documentation page for details.

1.6.1 - Minor improvements

13 Mar 17:35
Compare
Choose a tag to compare

Renamed argument in create_results_bag_fixture to align with the name used in saved_fixture (store instead of storage)

Now using decopatch for decorator creation. make_saved_fixture can thus be removed, and saved_fixture simplified.

Now using latest makefun>=1.5 so that saved_fixture create proper fixture wrappers, using @makefun.wraps.

See documentation page for details.

1.6.0 - improved `@saved_fixture` + minor dependency change

27 Feb 16:54
Compare
Choose a tag to compare

Users can now use @saved_fixture to save not only the fixture, but also some views created from it. This is interesting if each fixture is huge but users just want to save small aspects of it (name, size, etc.). Fixed #21.

Dependency to decorator has been dropped and replaced with makefun.

See documentation page for details.

1.5.0 - Bug fixes concerning fixtures

08 Jan 14:15
Compare
Choose a tag to compare

The fixture_store fixture, provided by the plugin, does not have autouse=True anymore. Fixed #20.

get_all_pytest_fixture_names now returns fixtures that are indirectly parametrized, as well as fixtures that are not parametrized. Fixed #19.

See documentation page for details.

1.4.3 - Better exceptions for `@saved_fixture`

19 Dec 14:22
Compare
Choose a tag to compare

Now raising a better exception if @saved_fixture is used on session- or module-scope fixtures. Fixes #18

See documentation page for details.