python-pytest-cases

Separate test code from test cases in pytest.

BSD-3-CLAUSE License

Downloads
658.7K
Stars
344
Committers
14

Bot releases are visible (Hide)

python-pytest-cases - 3.8.5 - Suppressed annoying warning with pytest 8 Latest Release

Published by github-actions[bot] 7 months ago

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

See documentation page for details.

python-pytest-cases - 3.8.4 - Removed debug logs

Published by github-actions[bot] 8 months ago

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

See documentation page for details.

python-pytest-cases - 3.8.3 - Support for `pytest` version 8

Published by github-actions[bot] 8 months ago

See documentation page for details.

python-pytest-cases - 3.8.2 - bugfixes and project improvements

Published by github-actions[bot] 10 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.

python-pytest-cases - 3.8.1 - bugfixes

Published by github-actions[bot] 12 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.

python-pytest-cases - 3.8.0 - async, generators and strict-markers

Published by github-actions[bot] about 1 year 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.

python-pytest-cases - 3.7.0 - python 3.12

Published by github-actions[bot] about 1 year 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.

python-pytest-cases - 3.6.14 - bugfixes

Published by github-actions[bot] over 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.

python-pytest-cases - 3.6.13 - bugfix

Published by github-actions[bot] over 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.

python-pytest-cases - 3.6.12 - type hint fix + enhanced compatibility with pytest plugins

Published by github-actions[bot] over 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.

python-pytest-cases - 3.6.11 - bugfix for pytest-xdist and `get_all_cases` API improvement

Published by github-actions[bot] over 2 years ago

  • get_all_cases can now be called without parametrization_target (defaulting to the caller module), and with an explicit module object. Fixed #258. PR #260 by @eddiebergman.
  • Fixed AttributeError: module 'pytest_cases' has no attribute 'CasesCollectionWarning' when running pytest-xdist and at least one cases class is ignored because of __init__ or __new__. Fixed #249.

See documentation page for details.

python-pytest-cases - 3.6.10 - bugfix for pytest 7.1

Published by github-actions[bot] over 2 years ago

See documentation page for details.

python-pytest-cases - 3.6.9 - Bugfix with pytest 7

Published by github-actions[bot] over 2 years ago

See documentation page for details.

python-pytest-cases - 3.6.8 - Bugfix: support for multiprocessing Pool

Published by github-actions[bot] almost 3 years ago

  • Suppressed warnings in our own tests, to improve packaging maintenance. Fixed #248
  • Fixed bug where setting ids in @parametrize without setting explicitly idgen=None would raise a ValueError. Fixed #238.
  • Fixed bug where case-holding class marks were not propagated to static methods and class methods. Fixed #246
  • Fixed support for multiprocessing Pool. Fixes #242

See documentation page for details.

python-pytest-cases - 3.6.7 - Minor improvements and preparing for pytest 7

Published by github-actions[bot] almost 3 years ago

  • Improved error message when a case function nested in a class has no self argument and is not static. Fixes #243
  • Added support for the new Scopes enum in pytest 7. Fixed #241
  • Fixed __version__ in development mode.

See documentation page for details.

python-pytest-cases - 3.6.5 - Bugfix

Published by github-actions[bot] almost 3 years ago

  • Fixed an issue where using keyword argnames in @pytest.mark.parametrize would cause IndexError: tuple index out of range in the tests collection phase. Fixed #234.

See documentation page for details.

python-pytest-cases - 3.6.4 - Bugfix

Published by github-actions[bot] about 3 years ago

  • A case id can now be a reserved keyword without triggering any SyntaxError, even if the case is transformed into a fixture. Fixes #230

See documentation page for details.

python-pytest-cases - 3.6.3 - Bugfix

Published by github-actions[bot] over 3 years ago

  • Fixed an issue where a lazy value would not be resolved. This happens when the "auto-simplify fixture" happens in @parametrize. Fixes #225

See documentation page for details.

python-pytest-cases - 3.6.2 - Qualimetry

Published by github-actions[bot] over 3 years ago

  • Fixed most flake8 errors and updated documentation to use genbadge. Fixes #223

See documentation page for details.

python-pytest-cases - 3.6.1 - bugfix - parametrizing a class with `@parametrize`

Published by github-actions[bot] over 3 years ago

  • Fixed ValueError when @parametrize is used to parametrize a class. Also, added a more explicit TypeError when @parametrize is used to parametrize a class and at least a fixture reference is present. Fixed #215.

See documentation page for details.

Package Rankings
Top 2.23% on Pypi.org
Top 29.85% on Conda-forge.org
Badges
Extracted from project README
Python versions Build Status Tests Status Coverage Status codecov Flake8 Status Documentation PyPI Downloads Downloads per week GitHub stars DOI