pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
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...
### 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`....
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...
Closes #7940 see also #7933 for my first attempt
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...
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",...
- [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...
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...
- [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...