pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
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,...
# A detailed description of the bug or problem you are having When creating the following structure: ``` x/ ├─ y/ │ ├─ y/ │ ├─ test_y.py ``` then `pytest...
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.
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...
#### 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...
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...
Prototype, in reference to #12596.
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...
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...