Python Pytest Cases Versions Save

Separate test code from test cases in pytest.

3.8.5

2 months ago
  • Fixed PytestRemovedIn9Warning: Marks applied to fixtures have no effect. Fixed #337

See documentation page for details.

3.8.4

3 months ago
  • Reverted DEBUG flag used for pytest 8 compatibility. Fixed #336

See documentation page for details.

3.8.3

3 months ago

See documentation page for details.

3.8.2

5 months ago
  • Fixed issue with upcoming pytest 8.1 release. PR #322 by @bluetech
  • Corrected API documentation (and comments) for the second file-name pattern for AUTO-cases lookup (cases_<name>.py instead of case_<name>.py). PR #320 by @michele-riva.
  • Fixed AssertionError on AUTO cases outside a 'normal' test module. Fixes #309. PR #320 by @michele-riva.
  • Improved error message in case of cases loading error in @parametrize_with_cases when the cases argument is a string refering to a relative or absolute module name. Fixed import file mismatch with pytest 8 when executing our own tests. Fixes #323.
  • Fixed failing tests in our builds due to the event_loop_policy fixture that appeared in pytest-asyncio 0.23. Fixes part of #321.

See documentation page for details.

3.8.1

7 months ago
  • Fixed ScopeMismatch with parametrized cases in non-trivial test trees. scope is now correctly handled for (i) fixture cases, and (ii) fixtures defined in conftest.py files at any depth. Fixes #311. PR #317 by @michele-riva.

See documentation page for details.

3.8.0

8 months ago
  • @fixture and @parametrize are now async and generator aware. Fixes #286. PR #301 by jgersti.
  • Fixed error with pytest --strict-markers. Fixes #283. PR #300 by chrsmcgrr.

See documentation page for details.

3.7.0

8 months ago
  • Added official support for Python 3.10, 3.11 and 3.12. Fixes #314
  • Fixed ModuleNotFoundError: distutils on Python 3.12 thanks to packaging. PR #312 by @jayqi.
  • Internal: switched to virtualenv backend.

See documentation page for details.

3.6.14

1 year ago
  • Fixed AttributeError issue in is_case_function when an inspected symbol is a parametrized type hint without __name__. Fixes #287
  • Fixed issue with get_all_cases: default value for cases was wrong. Fixes #290

See documentation page for details.

3.6.13

2 years ago
  • Fixed issue where a lazy value (for example a case function) was not resolved before being injected in a parametrized function, and was therefore appearing as a _LazyValueCaseParamValue . Fixed #274

See documentation page for details.

3.6.12

2 years ago
  • Improved compatibility with other pytest plugins, in particular pytest-repeat, by supporting removal from fixture closure tree. Fixed #269.
  • Fixed type hint errors detected by pyright. Fixed #270

See documentation page for details.