--- id: pytest-assume version: "2.4.3" license: MIT license_treatment: permissive maintenance: abandoned --- # pytest-assume — A pytest plugin that allows multiple failures per test License: permissive · Maintenance: abandoned · Downloads: 789.5K/mo ## 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 above — verify before relying. A pytest plugin that collects and reports multiple assertion failures within a single test, rather than stopping at the first failure. 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 pip install pytest-assume uv add pytest-assume poetry add pytest-assume ## Installing pytest-assume 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: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 789.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pytest multiple failures per test, pytest collect all assertions, pytest assume plugin, pytest continue after failure, pytest batch assertions, test-reporting, assertion-collection [View on SkillFed](https://skillfed.io/packages/pytest-assume) · [View on PyPI](https://pypi.org/project/pytest-assume/)