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

It'd be very helpful to have one canonical way to re-use fixture code between test modules. Right now, I know of 3 ways to do this, each with their own...

type: refactoring
type: feature-branch

Sybil's pytest integration allows users to [request pytest fixtures](https://sybil.readthedocs.io/en/latest/integration.html#pytest). Currently, if you typo a fixture name, you get this horrible internal error: ``` E ============================= test session starts ============================== E...

#### What's the problem this feature will solve? Approximate equality of complex objects using ``pytest.approx``. ``` import pytest class Item: def __init__(self, x): self.x = x a = Item(1) b...

type: proposal
topic: approx

``` python # conftest.py def pytest_terminal_summary(terminalreporter): terminalreporter.section("This is a section.") terminalreporter.write_line("This is a line.") terminalreporter.write_line("This is another line.") terminalreporter.section("This is another section.") terminalreporter.write_line("This is a 3rd line.") terminalreporter.write_line("This is a...

My setup: ``` (.venv) [root@4bd7686ed675 git_root]# pwd /root/git_root (.venv) [root@4bd7686ed675 git_root]# tree . ├── important_folder ├── other_folder └── package_root ├── conftest.py ├── src │ └── my_package │ ├── __init__.py │...

type: bug

#### What's the problem this feature will solve? There are multiple open issues that are requesting more control over the output displayed by `pytest`. `--verbose` turns everything up, but it...

type: proposal
topic: reporting

read more about causing / context exceptions in the [python doc](https://docs.python.org/3/library/exceptions.html#BaseException) #### What's the problem this feature will solve? It is quite unintuitive to match a causing exceptions (`raise Exception("i'm...

Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.26.0 to 1.0.0. Release notes Sourced from pytest-asyncio's releases. pytest-asyncio 1.0.0 1.0.0 - 2025-05-26 Removed The deprecated event_loop fixture. (#1106) Added Prelimiary support for Python 3.14 (#1025)...

dependencies
python

Bumps [twisted](https://github.com/twisted/twisted) from 24.11.0 to 25.5.0. Release notes Sourced from twisted's releases. Towncrier 25.5.0 Twisted 25.5.0 (2025-06-07) Bugfixes twisted.internet.runner.procmon.ProcessMonitor: startProcess() catches exceptions raised by reactor.spawnProcess() and attempts to restart the...

dependencies
python

Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 6.1.1 to 6.2.1. Changelog Sourced from pytest-cov's changelog. 6.2.1 (2025-06-12) Added a version requirement for pytest's pluggy dependency (1.2.0, released 2023-06-21) that has the required new-style hookwrapper...

dependencies
python