Skip to content

Latest commit

 

History

History
116 lines (74 loc) · 3.41 KB

CHANGELOG.md

File metadata and controls

116 lines (74 loc) · 3.41 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

[2.2.1] — 2024-05-27

Changed

  • Drop support for Python 3.7 (now EOL)
  • Add support for Python 3.12
  • Add support for pytest versions 8.0 and 8.1
  • Relax pytest version pin to allow all versions under 9.x

[2.2.0] — 2022-08-20

Added

  • Add py.typed file to package to enable mypy static type checking
  • Expose minimal generic typing on LambdaFixture

Fixed

  • Avoid crash when running under PyCharm/pydev debugger due to LambdaFixture.__class__ property

[2.1.0] — 2022-07-17

Changed

  • Preserve declared order of arguments with wrap_fixture (decorated method's first, then wrapped fixture's, then request)
  • DOC: add destructuring examples to README

[2.0.0] — 2022-07-14

BREAKING

  • Due to destructured parametrization now being powered by a custom pytest_generate_tests hook, incompatibilities may have been introduced. Out of caution, the major version has been bumped.

Added

  • Add support for destructuring referential tuple lambda fixtures (e.g. x, y, z = lambda_fixture('a', 'b', 'c'))
  • Add support for destructuring parametrized lambda fixtures (e.g. a, b, c = lambda_fixture(params=[pytest.param('ayy', 'bee', 'see')]))

[1.3.0] — 2022-05-17

Added

  • Add support for async/awaitable fixtures

[1.2.6] — 2022-05-15

Changed

  • Add support for pytest versions 7.0 and 7.1
  • Relax pytest version pin to allow all versions under 8.x

[1.2.5] — 2021-08-23

Fixed

  • Avoid ValueError: wrapper has not been initialized when using implicit referential lambda fixtures (e.g. name = lambda_fixture()) in combination with py.test --doctest-modules

[1.2.4] — 2020-12-28

Changed

  • Add support for pytest version 6.2
  • Relax pytest version pin to allow all versions under 7.x

[1.2.3] — 2020-11-02

Fixed

  • Resolve error in py.test --fixtures due to __module__ not properly being curried to fixture func

[1.2.2] — 2020-11-02

Fixed

  • Resolve error in py.test --fixtures when using error_fixture, not_implemented_fixture, or disabled_fixture

[1.2.1] — 2020-11-02

Changed

  • Add support for pytest version 6.1

[1.2.0] — 2020-09-06

Added

  • Allow certain arguments of wrapped fixture to be ignored w/ @wrap_fixture

[1.1.1] — 2020-08-01

Changed

  • Add support for pytest versions 4.6, 5.0, 5.1, 5.2, 5.3, 5.4, and 6.0

[1.1.0] — 2019-08-14

Added

  • Introduced wrap_fixture utility to extend fixtures while currying method signatures to feed pytest's dependency graph

[1.0.0] — 2019-05-26

Removed

  • Removed injection of pytest-lambda attrs into the pytest namespace

[0.1.0] — 2019-02-02

Fixed

  • Resolve error when executing py.test --fixtures

[0.0.2] — 2018-07-29

Added

  • Allow conditional raising of exceptions with error_fixture

Changed

  • Updated README with more succinct examples, and titles for example sections

[0.0.1] - 2018-07-28

Added

  • lambda_fixture, static_fixture, error_fixture, disabled_fixture, and not_implemented_fixture
  • Totes rad README (that can actually be run with pytest! thanks to pytest-markdown)