https://github.com/sco1/pytest-pahrametahrize
Parametrize your tests with a Boston accent
https://github.com/sco1/pytest-pahrametahrize
humor pytest python python3
Last synced: 5 months ago
JSON representation
Parametrize your tests with a Boston accent
- Host: GitHub
- URL: https://github.com/sco1/pytest-pahrametahrize
- Owner: sco1
- License: mit
- Created: 2021-11-24T16:20:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T12:44:46.000Z (6 months ago)
- Last Synced: 2025-05-07T22:47:35.453Z (5 months ago)
- Topics: humor, pytest, python, python3
- Language: Python
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# pytest-pahrametahrize
[](https://pypi.org/project/pytest-pahrametahrize/)
[](https://pypi.org/project/pytest-pahrametahrize/)
[](https://github.com/sco1/pytest-pahrametahrize/blob/main/LICENSE)
[](https://results.pre-commit.ci/latest/github/sco1/pytest-pahrametahrize/main)
Parametrize your tests with a Boston accent!
### Examples
```py
import pytestTRUTHINESS_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:
```py
import pytestTRUTHINESS_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.