Parametrize your tests with a Boston accent.
Project description
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.
Project details
Release history Release notifications | RSS feed
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-pahrametahrize-1.0.0.tar.gz
.
File metadata
- Download URL: pytest-pahrametahrize-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56d8ed1289bbd3c8022da38226f182e0fdb9e7f7b6b620b3614af8966bd6196e |
|
MD5 | 68167f31751081faf524b443ef8ae4fb |
|
BLAKE2b-256 | 21de521dd79cfded978ba8ec93fc4938fd1938ed0bdbb4b1f12ddaeadb028431 |
File details
Details for the file pytest_pahrametahrize-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_pahrametahrize-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e525138a5330c379e90cc4dd96b4832616e4182d6422a415fa7246b61b7704 |
|
MD5 | 564f3e960e45b6df3db6240d849e005e |
|
BLAKE2b-256 | 1e331bbf5e6ce7380d114e72bcfedddda1240999e08c717b8ef01ce3b69d6d7f |