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

I had meet a problem when running code with pytest 8.2.2 that test are importing modules from source, not from the installed version of package, that leads to test fail,...

topic: collection

# A detailed description of the bug or problem you are having When creating the following structure: ``` x/ ├─ y/ │ ├─ y/ │ ├─ test_y.py ``` then `pytest...

topic: collection

Suggesting new feature for parameterized ID name creation. In this way, all overridable options get the same set of arguments as the main _idval method.

bot:chronographer:provided

When using pytester to test a package fixture, the assertion rewrite is triggered. It looks like there is also trying to rewrite assertions in setuptools, However, most recent releases of...

the collect ignore on build directories seems to be over-arching due to matching in sub-directories even it should only consider the build/dist folders directly next to the project config files...

type: enhancement
topic: collection

#### What's the problem this feature will solve? A common workflow is to re-run locally tests that have failed on CI. When there are a number of failures, it is...

type: proposal

See https://github.com/pytest-dev/pytest/pull/12172#discussion_r1667357437 for some cases where this bit us; at time of writing there are at least three cases _in Pytest's own tests_ where this is biting us. I think...

type: enhancement
topic: marks

It would be useful if also classes / methods / functions with doctests could be marked: ```python import pytest @pytest.mark.custom_marker def return_true(): """Return True. >>> return_true() True """" return True...

type: enhancement
plugin: doctests
topic: marks

follow up to #10981 in case there is a clear benefit for maintenance and the eol is close-by, i want to allow major pytest releases to be allowed to drop...

type: proposal