pytest
pytest copied to clipboard
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
## Description There appears to be an issue with pytest's test execution order that causes a session-scoped, parametrized fixture to be set up and torn down multiple times with the...
I have a handful of tools in and outside of a pytest run that care about whether the `matchexpr` (i.e. what gets passed to `pytest -m ...`) will match a...
Hi, I'm trying to build a base class to hold a common test setup and assumptions, that I want to enable in subclasses (inspired by [this article](https://adamj.eu/tech/2025/05/30/python-unittest-common-tests/#with-pytest-using-the-test-attribute)) having the fixture-powered...
#### What's the problem this feature will solve? The `-r` flag controls both summary report and output capture reporting. Really, it'd be nice to have those separate. For large tests...
#### What's the problem this feature will solve? Currently it's only possible to set the name of the root suite when running tests, but other frameworks such as jest will...
#### What's the problem this feature will solve? when i enable the new strict mode in pytest settings, i expect any warnings to become errors. but there seems to still...
#### What's the problem this feature will solve? I noticed that some of the release automation activities involve running bare GH CLI commands with arguments that have to match pre-release...
Hey there - ~~very difficult to reproduce this consistently, as the behavior changes arbitrarily.~~ see my comment below for reproducer The bad behavior looks like this: ``` [classic@framework sqlalchemy:try_pytest_9]$ .nox/tests-py313-sqlite-cext-backendonly/bin/python...
In general is better not to use `-latest` runners because they are very often outdated versions, causing problems. As github does not update the name of the runners very often,...
I just now updated an old application from pytest 7 to 8 and the following started failing: ```python # Using pytest 8.4.2 from unittest import TestCase, skipIf import pytest @skipIf(True,...