pytest-check
A pytest plugin that allows multiple failures per test.
Decision gist · record as of 2026-08-14
Yes. The plugin solves a real testing problem—seeing all failures at once rather than fixing them iteratively—with low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It integrates cleanly with pytest and requires only common dependencies. Suitable for any test suite where comprehensive failure reporting per test is valuable.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pytest to be installed; Python 3.9 or later.
- Low install friction with a pure-Python wheel and only three runtime dependencies (pytest, packaging, typing-extensions).
- Actively maintained with a recent release.
License · maintenance · safety
(unclear) — MIT license permits commercial and private use with minimal restrictions; attribution required.
last release 2026-08-01 (13 days) · last repo commit 2026-08-01 · 425 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,041,371 downloads/mo, #2,392 on PyPI
Alternatives
Verify before relying
pip install pytest-check
from pytest_check import check
def test_example():
with check:
assert 1 == 1
with check:
assert 2 == 2- Whether the plugin works with pytest fixtures and parametrization patterns beyond the documented examples.
- Performance impact when running hundreds or thousands of checks in a single test.
What it is and what it does
pytest-check is a pytest plugin that changes how assertion failures are handled within a test function. Normally, a test stops at the first failed assertion. This plugin allows you to wrap assertions in a `with check:` block (or use its helper functions like `check.equal()`) so that failures are recorded but execution continues, letting you see all the problems in one test run instead of fixing them one at a time.
The plugin provides both a context-manager interface and a set of built-in validation functions covering common comparisons (equality, identity, containment, type checks, numeric comparisons, NaN checks, and approximate equality). You can also decorate your own helper functions with `@check.check_func` to turn them into non-blocking checks, or use `check.fail()` for custom failure reporting. It includes a `check.raises()` context manager for non-blocking exception testing.
Use it for
- Validate multiple properties of an HTTP response (status code, headers, body content) without stopping at the first failure.
- Check all fields in a parsed data structure or API response in a single test run.
- Run a loop of similar checks (e.g., validating multiple items) and collect all failures before reporting.
- Test configuration or setup code where you want to verify all invariants hold, not just the first one.
- Regression testing where you want a comprehensive view of what broke across multiple assertions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The plugin solves a real testing problem—seeing all failures at once rather than fixing them iteratively—with low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It integrates cleanly with pytest and requires only common dependencies. Suitable for any test suite where comprehensive failure reporting per test is valuable.
Install
pytest-check on PyPI
Before you install
Low install friction with a pure-Python wheel and only three runtime dependencies (pytest, packaging, typing-extensions). Actively maintained with a recent release.
Requires pytest to be installed; Python 3.9 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions; attribution required.
Quickstart
pip install pytest-check
from pytest_check import check
def test_example():
with check:
assert 1 == 1
with check:
assert 2 == 2
Verify before relying
- Whether the plugin works with pytest fixtures and parametrization patterns beyond the documented examples.
- Performance impact when running hundreds or thousands of checks in a single test.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespackagingpytesttyping-extensions |
| Maintenance | Actively maintained 13 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,041,371 / month, #2,392 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: TestingTopic :: Utilities |
Evidence: pytest_check-2.9.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest non-blocking assertions”
- pytest-checkA pytest plugin that allows tests to continue running and collect…
- pytest-assumeA pytest plugin that collects and reports multiple assertion failures…
- assertpyProvides a fluent assertion API for writing readable unit test…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also pytest-assume · pytest-runtime-xfail · softest · pytest-rerunfailures · pytest-github-actions-annotate-failures · pytest-deepassert · pytest-raises · re-assert · pytest-pretty · pytest-cache