skillfed

pytest-parametrization

Simpler PyTest parametrization

pytest-parametrization v2022.2.1 114.6K downloads/30d#12,288 on PyPI49
Permissive license MIT License Abandoned released

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 on this page — 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

pytest-parametrization on PyPI

pip

pip install pytest-parametrization

uv

uv add pytest-parametrization

poetry

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 the current Python release (>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*)
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 1,545 days since the last release
Last repo commit
First released
Downloads 114,571/month — #12,288 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest-parametrization-2022.2.1.tar.gz

Keywords: pytest, parametrize, parametrization, singular

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Software Development :: Build Tools

Tags

pytest parametrization decoratortest case parametrizationpytest test parametersparametrized test casespytest test fixtures alternativemultiple test inputs pytest
pytest-pluginabandoned

More Build Tools packages