--- id: pytest-parametrization version: "2022.2.1" license: MIT License license_treatment: permissive maintenance: abandoned --- # pytest-parametrization — Simpler PyTest parametrization License: permissive · Maintenance: abandoned · Downloads: 114.6K/mo ## What it is and what it does pytest-parametrization is a decorator-based wrapper around pytest's parametrization feature, designed to reduce boilerplate when writing parameterized tests. Instead of using pytest.mark.parametrize with tuples or lists, you stack decorators to define test cases with named parameters and optional auto-detection of parameter names from the test function signature. It also supports default parameter values and custom name factories to generate test case names from argument values. The package has been abandoned since mid-2022 and targets Python versions that are now end-of-life (2.7, 3.4–3.6). While it carries no known vulnerabilities and uses a permissive MIT license, the lack of maintenance means it will not receive updates for modern Python compatibility issues or pytest API changes. For new projects, pytest's native parametrization or actively maintained alternatives are likely safer choices. Use it for: - Simplify test code when you have many test cases with the same assertions but different inputs and expected outputs. - Use auto-detection to avoid repeating parameter names in both decorators and function signatures. - Generate descriptive test case names dynamically from argument values using a name factory function. - Define default values for optional parameters across multiple test cases to reduce repetition. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides decorator-based parametrization for pytest test functions, allowing you to define multiple test cases with different inputs and expected outputs in a cleaner syntax than pytest's built-in parametrize. No. The package is abandoned (last update 2022-05-22, no commits since 2023-08-01) and targets obsolete Python versions (2.7, 3.4–3.6). Modern pytest versions have native parametrization that covers the same use cases. Install only if you are maintaining legacy code already using this package; for new projects, use pytest's built-in parametrize decorator instead. ## Install pip install pytest-parametrization uv add pytest-parametrization poetry add pytest-parametrization ## Installing pytest-parametrization Before you install: High install friction and abandoned maintenance status. Last release was 2022-05-22 with no updates since; repo shows 49 stars and last commit on 2023-08-01. The package targets Python 2.7 through 3.6, which are now end-of-life. Consider whether pytest's native parametrization or active alternatives better suit your current Python version. License in practice: MIT License (permissive) places no restrictions on use, modification, or distribution. You can safely use this in commercial or proprietary projects without licensing obligations. Quickstart: pip install pytest-parametrization from parametrization import Parametrization @Parametrization.parameters("actual", "expected") @Parametrization.case(name="test_1", actual=1, expected=1) @Parametrization.case("test_2", 2, 2) def test_example(actual, expected): assert actual == expected Package targets Python 2.7 and 3.4–3.6; compatibility with Python 3.7+ is untested and unsupported by the maintainers. Verify before relying: - Whether this package works reliably with modern Python versions (3.8+) despite classifier claims only up to 3.6. - Whether pytest's native parametrize decorator (available since pytest 2.3) now covers all use cases this package was designed to simplify. - Active maintenance status or community forks that may have continued development. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: high - Maintenance: abandoned - Downloads: 114.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pytest parametrization decorator, test case parametrization, pytest test parameters, parametrized test cases, pytest test fixtures alternative, multiple test inputs pytest, pytest-plugin, abandoned [View on SkillFed](https://skillfed.io/packages/pytest-parametrization) · [View on PyPI](https://pypi.org/project/pytest-parametrization/)