Separate test code from test cases in pytest.
BSD-3-CLAUSE License
Bot releases are visible (Hide)
Published by github-actions[bot] 7 months ago
PytestRemovedIn9Warning: Marks applied to fixtures have no effect
. FixedSee documentation page for details.
Published by github-actions[bot] 8 months ago
DEBUG
flag used for pytest 8 compatibility. FixedSee documentation page for details.
Published by github-actions[bot] 8 months ago
See documentation page for details.
Published by github-actions[bot] 10 months ago
pytest 8.1
release. PRAUTO
-cases lookup (cases_<name>.py
instead ofcase_<name>.py
). PR #320AssertionError
on AUTO
cases outside a 'normal' test module.@parametrize_with_cases
when the cases
argumentimport file mismatch
withevent_loop_policy
fixture that appeared in pytest-asyncio
0.23
.See documentation page for details.
Published by github-actions[bot] 12 months ago
ScopeMismatch
with parametrized cases in non-trivial testscope
is now correctly handled for (i) fixture
cases, andconftest.py
files at any depth. FixesSee documentation page for details.
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
ModuleNotFoundError: distutils
on Python 3.12 thanks to packaging
. PRSee documentation page for details.
Published by github-actions[bot] over 1 year ago
AttributeError
issue in is_case_function
when an inspected symbol is a parametrized type hint__name__
. Fixes #287
get_all_cases
: default value for cases
was wrong. Fixes #290
See documentation page for details.
Published by github-actions[bot] over 2 years ago
_LazyValueCaseParamValue
. Fixed #274
See documentation page for details.
Published by github-actions[bot] over 2 years ago
pytest
plugins, in particular pytest-repeat
, by supporting removal from fixture closure tree. Fixed #269.pyright
. Fixed #270
See documentation page for details.
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.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.
Published by github-actions[bot] over 2 years ago
ImportError
when using pytest 7.1
. Fixed #264 and pytest-dev#9762.See documentation page for details.
Published by github-actions[bot] over 2 years ago
See documentation page for details.
Published by github-actions[bot] almost 3 years ago
ids
in @parametrize
without setting explicitly idgen=None
would raise a ValueError
. Fixed #238.Pool
. Fixes #242
See documentation page for details.
Published by github-actions[bot] almost 3 years ago
self
argument and is not static. Fixes #243
__version__
in development mode.See documentation page for details.
Published by github-actions[bot] almost 3 years ago
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.
Published by github-actions[bot] about 3 years ago
SyntaxError
, even if the case is transformed into a fixture. Fixes #230
See documentation page for details.
Published by github-actions[bot] over 3 years ago
@parametrize
. Fixes #225
See documentation page for details.
Published by github-actions[bot] over 3 years ago
flake8
errors and updated documentation to use genbadge
. Fixes #223
See documentation page for details.
Published by github-actions[bot] over 3 years ago
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.