Skip to main content

Pytest plugin for parametrizing tests with default iterables.

Project description

https://img.shields.io/pypi/v/pytest-parametrized.svg https://img.shields.io/pypi/pyversions/pytest-parametrized.svg https://img.shields.io/pypi/status/pytest-parametrized.svg https://img.shields.io/travis/coady/pytest-parametrized.svg https://img.shields.io/codecov/c/github/coady/pytest-parametrized.svg

Pytest plugin for parametrizing tests with default iterables, providing alternative syntax for pytest.mark.parametrize.

Usage

@pytest.parametrized
def test(name=values, ...)
   """test single parametrized arg with each value"


@pytest.parametrized.zip
def test(name=values, name1=values1, ...)
   """test parametrized args with zipped values"

@pytest.parametrized.product
def test(name=values, name1=values1, ...)
   """test parametrized args with cartesian product of values"

Installation

$ pip install pytest-parametrized

Dependencies

  • Python 2.7, 3.4+

Tests

100% branch coverage.

$ pytest [--cov]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-parametrized-0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

pytest_parametrized-0.1-py2.py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page