pytest-pahrametahrize 1.0.0

Last updated:

0 purchases

pytest-pahrametahrize 1.0.0 Image
pytest-pahrametahrize 1.0.0 Images
Add to Cart

Description:

pytestpahrametahrize 1.0.0

pytest-pahrametahrize



Parametrize your tests with a Boston accent!
Examples
import pytest

TRUTHINESS_TEST_CASES = [
(None, False),
(False, False),
]


@pytest.mark.parametrize(("in_val", "truth_out"), TRUTHINESS_TEST_CASES)
def test_pahrametahrize(in_val, truth_out):
assert bool(in_val) == truth_out

becomes:
import pytest

TRUTHINESS_TEST_CASES = [
(None, False),
(False, False),
]


@pytest.pahrametahrize(("in_val", "truth_out"), TRUTHINESS_TEST_CASES)
def test_pahrametahrize(in_val, truth_out):
assert bool(in_val) == truth_out

Wicked pissah.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.