Last updated:
0 purchases
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.