Skip to main content

Parametrize your tests with a Boston accent.

Project description

pytest-pahrametahrize

pre-commit.ci status Code style: black Open in Visual Studio Code

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-pahrametahrize-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pytest_pahrametahrize-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for pytest-pahrametahrize-1.0.0.tar.gz
Algorithm Hash digest
SHA256 56d8ed1289bbd3c8022da38226f182e0fdb9e7f7b6b620b3614af8966bd6196e
MD5 68167f31751081faf524b443ef8ae4fb
BLAKE2b-256 21de521dd79cfded978ba8ec93fc4938fd1938ed0bdbb4b1f12ddaeadb028431

See more details on using hashes here.

File details

Details for the file pytest_pahrametahrize-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_pahrametahrize-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63e525138a5330c379e90cc4dd96b4832616e4182d6422a415fa7246b61b7704
MD5 564f3e960e45b6df3db6240d849e005e
BLAKE2b-256 1e331bbf5e6ce7380d114e72bcfedddda1240999e08c717b8ef01ce3b69d6d7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page