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

Ok, of course they are... But usually* when a dev commits the test, the test is passing, so the dev may not notice how preposterous a diff they are inadvertently...

type: performance
topic: rewrite

- [x] junitxml fstrings - [x] skipping fstrings - [x] fixture test fstrings - [x] junitxml tests Domnode Refactoring (needs bikeshedding) this is a bunch of changes i collected as...

bot:chronographer:provided

this is a initial prepare to mitigate the "smart ctors" for node types

Follow-up to #12427 plus some more cleanups: - Mention `[email protected]` as mail point of contact (not live yet, hence why this is a draft PR) - Also add a list...

type: docs
backport 8.2.x
skip news

This helps prevent testing the non-installed source. Additionally, the patch updates the docs to demonstrate a more predictable runpy-style invocation method.

We have quite some history when it comes to link checks: - #1722 - #5613 - #5614 - #6612 - #6916 So we're currently not running link checking at all....

type: docs
good first issue
type: infrastructure

Using an invalid regex in `pytest.raises` fails in a messy way. ```py with pytest.raises(ValueError, match="invalid regex character ["): raise ValueError() ``` ```shell Traceback (most recent call last): File "", line...

good first issue

Suppose you have a parameterized test, some params of which are expected to raise (e.g.) `IndexError`: ```python return pytest.param( ..., marks=pytest.mark.xfail(raises=IndexError, strict=True), ) ``` If your test is async though,...

type: enhancement
topic: parametrize

Closes [#11525](https://github.com/pytest-dev/pytest/issues/11525) During the sprint we discussed fixing the above issue and thought maybe it's a better idea to add a better represenation to fixtures. To do this without patching...

bot:chronographer:provided