Pytest plugin for parametrizing tests with default iterables.
Project description
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
Built Distribution
Close
Hashes for pytest_parametrized-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0528f8abb49f84d08d535c9c343871e1b705f031319aa9a24925c8db1ace0f9e |
|
MD5 | bd12255827764a6a6197c6f08dd0c3a3 |
|
BLAKE2b-256 | d07582d414047beaec0e3965ebaee0c05353dee0367872b74b55504318f09152 |