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

### Discussed in https://github.com/pytest-dev/pytest/discussions/9958 Originally posted by **jeffwright13** May 14, 2022 At the end of a pytest run, you have a section called "short test summary info," which terminates in...

topic: reporting
topic: marks

#### What's the problem this feature will solve? I'm developing a pytest plugin that allows users to easily configure their fixtures: https://pypi.org/project/pytest-paramark/ One of the things I need for the...

type: proposal
topic: fixtures

The [documentation for `pytest.mark.xfail()`](https://docs.pytest.org/en/latest/reference/reference.html#pytest-mark-xfail) does not match reality. - `reason=None`: If no conditions are passed, `reason`’s default is `""` ([code](https://github.com/pytest-dev/pytest/blob/b08c1dcf0e421b408653d185574baec7855e2439/src/_pytest/skipping.py#L218)). Adding `@pytest.mark.xfail(reason=None, strict=True)` to a passing test results in “TypeError:...

type: enhancement
type: docs
topic: typing

Now sorry I know this is not a minimal reproducer, but I just want to log this here, and will investigate later: You can see one Failure [here](https://github.com/ipython/ipython/runs/5535131839?check_suite_focus=true) ``` ERROR...

type: regression
topic: config

#### What's the problem this feature will solve? The marker `pytest.mark.xfail()` still runs the tests, but the test results in XFAIL if fail, XPASS if pass. The API function `pytest.xfail()`...

type: proposal

Closes #9027. TODO: discuss API in #9027 TODO: write documentation TODO: write changelog entry TODO: add me to AUTHORS TODO: fix linting errors TODO: write proper commit message

status: needs information

```python {'a': {'b': 0.2 + 0.1}} == pytest.approx({'a': {'b': 0.3}}) ``` ``` ~/.conda/lib/python3.6/site-packages/_pytest/python_api.py in __eq__(self, actual) 195 # other or not. The abs() calls are for compatibility with complex 196...

type: enhancement
topic: approx

_For context, see #10055 which initiated this ticket._ #### What's the problem this feature will solve? To give a concrete use case example: * I'm using the [`pytest-mypy-plugins`](https://github.com/typeddjango/pytest-mypy-plugins) plugin *...

type: proposal
topic: config

It appears that the `--ignore` option is not specified relative to `--rootdir`, which is a bit of a problem when you want to execute your tests from a directory other...

type: enhancement
topic: collection

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

status: needs information