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
File details
Details for the file pytest-parametrized-0.1.tar.gz
.
File metadata
- Download URL: pytest-parametrized-0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afcdecdaa07fcf433453567948e31bb7b095e8ff012c9806e9bf777615e02ad5 |
|
MD5 | 7fa25466ba8a937861363885f09908da |
|
BLAKE2b-256 | fd6f67a6ea33f58036e607e1862b0eb250e5cc8ab5d2c06b4beb0580760488a3 |
File details
Details for the file pytest_parametrized-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_parametrized-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0528f8abb49f84d08d535c9c343871e1b705f031319aa9a24925c8db1ace0f9e |
|
MD5 | bd12255827764a6a6197c6f08dd0c3a3 |
|
BLAKE2b-256 | d07582d414047beaec0e3965ebaee0c05353dee0367872b74b55504318f09152 |