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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file pytest-parametrized-0.1.tar.gz.

File metadata

File hashes

Hashes for pytest-parametrized-0.1.tar.gz
Algorithm Hash digest
SHA256 afcdecdaa07fcf433453567948e31bb7b095e8ff012c9806e9bf777615e02ad5
MD5 7fa25466ba8a937861363885f09908da
BLAKE2b-256 fd6f67a6ea33f58036e607e1862b0eb250e5cc8ab5d2c06b4beb0580760488a3

See more details on using hashes here.

File details

Details for the file pytest_parametrized-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_parametrized-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0528f8abb49f84d08d535c9c343871e1b705f031319aa9a24925c8db1ace0f9e
MD5 bd12255827764a6a6197c6f08dd0c3a3
BLAKE2b-256 d07582d414047beaec0e3965ebaee0c05353dee0367872b74b55504318f09152

See more details on using hashes here.

Supported by

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