pytest icon indicating copy to clipboard operation
pytest copied to clipboard

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

Results 573 pytest issues
Sort by recently updated
recently updated
newest added

When using `pytest.param` to create parameters for a test from a function, that function will return a list of `ParameterSet` but currently that is only available from `_pytest.mark.structures` which is...

type: enhancement
topic: parametrize
topic: typing

Environment and versions: ``` platform linux -- Python 3.9.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python cachedir: .pytest_cache rootdir: /home/edited, configfile: pytest.ini plugins: xdist-2.3.0, timeout-1.4.2, forked-1.3.0 timeout: 10.0s timeout method: signal timeout...

type: performance
topic: rewrite

I am trying to add a pytest plugin to coverage.py. Because the plugin is in the coverage package, coverage/__init__.py will be imported when the plugin is imported. Because I'm using...

type: enhancement
topic: rewrite

#### What's the problem this feature will solve? I have a test which uses a large dictionary of words. With showlocals on (which is generally really useful and I have...

type: proposal
topic: reporting

The documented pattern for [parametrizing conditional raising](https://docs.pytest.org/en/stable/example/parametrize.html#parametrizing-conditional-raising) leaks a lot of memory. The problem is that the `pytest.raises` context manager is mutated with a reference to the raised exception and...

type: performance

# Description: When passing duplicate test nodeids in the command line arguments, pytest shows an incorrect collection count but only executes the test once. # Steps to Reproduce: Run pytest...

# Content: I've found a discrepancy between the documentation and the actual behavior of the pytest.exit function regarding the returncode parameter. # Documentation: ``` def exit( reason: str = "",...

https://github.com/pytest-dev/pytest/issues/10845#issuecomment-2802869441 > i think that part deserves a new issue that specifically handles that part cc @RonnyPfannschmidt @The-Compiler

type: bug
topic: collection
topic: rewrite

Add option to rerun all tests in files with last-failed tests. Closes [13390](https://github.com/pytest-dev/pytest/issues/13390). Provides --last-fail-files(--lff) option to rerun files which contain last failed from previous run tests.

bot:chronographer:provided

Likely a duplicate of https://github.com/pytest-dev/pytest/issues/9361 and https://github.com/pytest-dev/pytest/issues/10486 I'm trying to assert the behaviour of a context manager that alters a specific logger. For that I was trying to capture the...