Registry / testing / pytest-plus

pytest-plus

JSON →
library0.8.1pypypi✓ verified 83d ago

A pytest plugin that extends pytest functionality with enhanced assertions, test ordering, and fixtures. Current version is 0.8.1, with a monthly release cadence. Supports Python >=3.10.

pip install pytest-plus
INSTALL
IMPORT
SIG · PYTEST-PLUS
P
pytest-plus
testingpythonv0.8.1
Install
2.8s avg
Import
—
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.8.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.8MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 2.8s · import 0.000s · 31MB
29MB installed
● package 29MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PYTEST_CHECK_TEST_DUPLICATE
✓ from pytest_plus import PYTEST_CHECK_TEST_DUPLICATE
✗ from pytest_plus import plus
TerminalReporter
✓ from pytest_plus import TerminalReporter
✗ from pytest_plus import plus
annotations
✓ from pytest_plus import annotations
✗ from pytest_plus import plus

Basic usage of the plus helper from pytest-plus. Run with: pytest

# content of test_example.py from pytest_plus import plus def test_addition(): result = plus(2, 3) assert result == 5, f"Expected 5, got {result}"
Debug
Known issues
gotchapytest-plus overrides default pytest behavior for fixture ordering. Existing tests may fail if they depend on fixture execution order.
fix
Use 'pytest --no-header' or disable pytest-plus specific ordering with '-p no:plus'
affects: all
breakingIn version 0.8.0, the 'assert_that' helper was renamed to 'plus' and its signature changed. Old code using 'assert_that' will break.
fix
Replace 'from pytest_plus import assert_that' with 'from pytest_plus import plus' and update calls accordingly.
affects: <0.8.0
Upgrade
Version history
0.8.1latest on PyPI · released Feb 2, 2025
Audit
Dependencies
pytestrequiredCore dependency: pytest-plus is a pytest plugin.
Agent activity
36 hits · last 30 days
node
34
Resources
pytest-plus — pip install pytest-plus · libregistry