pytest-assume
A pytest plugin that allows multiple failures per test
Decision gist · record as of 2026-08-14
Yes, if you need to collect multiple failures per test and are comfortable with an abandoned project. The feature is straightforward and has no known vulnerabilities, but verify compatibility with your pytest version before relying on it in production. Consider maintaining a fork if you need ongoing support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with only pytest and six as runtime dependencies.
- However, the project is abandoned—last release was 2021-06-24 and last commit 2023-05-09, with no active maintenance.
- Use only if the feature set meets your needs and you're comfortable maintaining a fork if issues arise.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
last release 2021-06-24 (1877 days) · last repo commit 2023-05-09 · 69 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 789,545 downloads/mo, #5,054 on PyPI
Alternatives
Verify before relying
pip install pytest-assume
import pytest
def test_multiple_checks():
pytest.assume(1 == 1)
pytest.assume(2 == 2)
pytest.assume(3 == 4) # fails but test continues- Compatibility with recent pytest versions (latest release predates current pytest major versions)
- Whether the plugin works correctly with modern Python versions and pytest fixtures
What it is and what it does
pytest-assume is a pytest plugin that changes how test failures are reported. Instead of stopping at the first failed assertion, it collects all assumption failures in a test and reports them together at the end. This is useful when you want to see all the ways a test failed in one run, rather than fixing one assertion and re-running to find the next.
The plugin provides a `pytest.assume()` function that can wrap assertions or be used as a context manager around plain assertions. It depends on pytest and six, and has low install friction. However, the project has been abandoned since mid-2023 with no recent maintenance, so compatibility with the latest pytest versions is not guaranteed.
Use it for
- Batch-checking multiple related conditions in a parametrized test without stopping at the first failure
- Validating all fields of a complex object in a single test run to see all validation errors at once
- Running data-driven tests where you want to collect all assertion failures across multiple parameter sets before stopping
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to collect multiple failures per test and are comfortable with an abandoned project.
The feature is straightforward and has no known vulnerabilities, but verify compatibility with your pytest version before relying on it in production. Consider maintaining a fork if you need ongoing support.
Install
pytest-assume on PyPI
Before you install
Low install friction with only pytest and six as runtime dependencies. However, the project is abandoned—last release was 2021-06-24 and last commit 2023-05-09, with no active maintenance. Use only if the feature set meets your needs and you're comfortable maintaining a fork if issues arise.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install pytest-assume
import pytest
def test_multiple_checks():
pytest.assume(1 == 1)
pytest.assume(2 == 2)
pytest.assume(3 == 4) # fails but test continues
Verify before relying
- Compatibility with recent pytest versions (latest release predates current pytest major versions)
- Whether the plugin works correctly with modern Python versions and pytest fixtures
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespytestsix |
| Maintenance | Abandoned 1,877 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 789,545 / month, #5,054 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonTopic :: Software Development :: Testing |
Evidence: pytest_assume-2.4.3-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 multiple failures per test”
- pytest-assumeA pytest plugin that collects and reports multiple assertion failures…
- pytest-checkA pytest plugin that allows tests to continue running and collect…
- pytest-md-reportA pytest plugin that generates test outcome reports formatted as…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
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.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-check · pytest-deepassert · pytest-reraise · re-assert · pytest-subtests · softest · delayed-assert · asserts · pytest-cache · pytest-retry