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 653 pytest issues
Sort by recently updated
recently updated
newest added

Closes #13503. This PR updates the failure message formatting to respect the original order of dictionary keys, instead of sorting them alphabetically. Changes made: Common items shared by both dictionaries...

bot:chronographer:provided

### Context Currently, one of the ways to use `pytest.fail` is to include all of the necessary information in the `reason` field and disabling the traceback with `pytrace = False`....

type: proposal
topic: reporting

Here are a list of possible improvements in pytest fixtures, initially introduced in #10771 . |Improvement| Corresponding PR| |---|---| |Remove `funcargs` attribute from `Callspec` to unify parameters of the test...

type: proposal
type: refactoring

Closes #7940 see also #7933 for my first attempt

bot:chronographer:provided

This is a duplicate of #5429 (which does not appear to actually be resolved, or has regressed) but I come bearing more details, in particular a matrix that should help...

type: bug
platform: windows
platform: mac

This pull request closes #13223 and #5621 by introducing support for controlling the order of stacked `@pytest.mark.parametrize` decorators using the `parametrize_order` option in `pytest.ini`. By setting this option to "declaration",...

bot:chronographer:provided

- [X] a detailed description of the bug or suggestion - [ ] output of `pip list` from the virtual environment you are using - [X] pytest and operating system...

topic: reporting
topic: parametrize

Forked from #1029 --- a) A very convenient, and standard, way to configure tools' cache location is to set $XDG_CACHE_DIR. Many of my project's fixtures do this for other reasons...

type: proposal
plugin: cache
topic: config

- [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...

good first issue
type: selftests