pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
## [reproducer](https://github.com/flying-sheep/pytest-doctest-import-mismatch) We’d like to run our tests on an installed package instead of the development version, as we delete some files in our build process. We therefore don’t use...
#### What's the problem this feature will solve? in my plugin, i want to be able to customize or rewrite assertions based on the second argument to the `assert` statement:...
- [x] a detailed description of the bug or problem you are having - [x] output of `pip list` from the virtual environment you are using - [x] pytest and...
I believe this may be related to https://github.com/pytest-dev/pytest/issues/3664. In pandas, we dynamically add a marker for our doctests so that we don't need `import pandas as pd` and `import numpy...
As detailed in https://github.com/pytest-dev/pytest/issues/11475#issuecomment-1937043670, currently with `--import-mode=importlib` pytest will try to import every file by using a unique module name, regardless if that module could be imported using the normal...
If a comparison on the length of a sequence fails, the sequence is truncated in the failure explanation regardless of the verbosity setting. Example script: ```python def test_list(): l =...
The combination of PyTest, and `@pytest.mark.parametrize` causes reference leaks: by this, I mean that the objects parameterizing the test case are not always reliably freed by the time the Python...
Originally reported by: **Jurko Gospodnetić (BitBucket: [jurko](http://bitbucket.org/jurko), GitHub: [jurko](http://github.com/jurko))** --- When using parametrized module scoped fixtures, their finalization output gets captured inconsistently. It does not get captured for a test...
Hello! After updating the pytest version from 5.4.3 to 6.0.0rc1 in my service I noticed the tests performance regression. I was very determined to find the root cause so I...
I noticed that the project doesn't implement the feature of `setuptools-scm` to deduce versions out of Git archives. It used to be a third party plugin and now its a...