pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
Add a bit of additional information about running tests in a module for new users. # TODO: Would still likely to clarify if you can use globbing at all with...
Closes the following issues: - #8593 Improved error log messages cased for parameterized testing parameters - #8859 Created a new option `--log-file-verbose` to allow users to toggle between the old...
Following an upgrade to Pytest 8, we are seeing a change in the way duplicate items are handled, which does not seem logical/expected to me. ## Current behavior Let's assume...
Compare pyc cache files by source hash. Especially in CI environments, it's common for mtimes to be reset when restoring a cache. To work around that, fallback to a source...
Currently if an exception is raised during the `setup` or `teardown` phase of a fixture, pytest handles that and shows a nice traceback: ```python import pytest @pytest.fixture def my_setup() ->...
Dumb terminals are incapable of handling color, so this test would fail when ran in such an environment. We encountered this on the Solus build infrastructure which uses such a...
Hi! I'm trying to find a way to use doctests, but not for Windows. It seems that there's a way to do this at: https://docs.pytest.org/en/latest/example/simple.html#dynamically-adding-command-line-options I tried the following minimal...
..rst`. See [changelog/README.rst](https://github.com/pytest-dev/pytest/blob/main/changelog/README.rst) for details. - [X] Add yourself to `AUTHORS` in alphabetical order. -->
Originally reported by: **BitBucket: [ColeVsCode](http://bitbucket.org/ColeVsCode), GitHub: [ColeVsCode](http://github.com/ColeVsCode)** --- Hi, I'd like to be able to create a module or session scoped fixture that uses monkeypatch. ``` #!python @pytest.fixture(scope='session') def usermanager(monkeypatch):...
We recently ran into the issue that it would have been useful to get more details from a pytest exception print. With `-vv` one gets all the untruncated local vars....