<commit_before>import pytest
from decouple import strtobool


def test_true_values():
    for item in ("Y", "YES", "T", "TRUE", "ON", "1"):
        assert strtobool(item)


def test_false_values():
    for item in ("N", "NO", "F", "FALSE", "OFF", "0"):
        assert strtobool(item) is False


def test_invalid():
    with pytest.raises(ValueError, match="Invalid truth value"):
        strtobool("MAYBE")
<commit_msg>Parametrize tests<commit_after>import pytest
from decouple import strtobool


@pytest.mark.parametrize("value", ("Y", "YES", "T", "TRUE", "ON", "1"))
def test_true_values(value):
    assert strtobool(value)


@pytest.mark.parametrize("value", ("N", "NO", "F", "FALSE", "OFF", "0"))
def test_false_values(value):
    assert strtobool(value) is False


def test_invalid():
    with pytest.raises(ValueError, match="Invalid truth value"):
        strtobool("MAYBE")

{'fraction_non_alphanumeric': 0.17006802721088435, 'fraction_numerical': 0.0045351473922902496, 'mean_word_length': 4.660256410256411, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7285248', 'n_tokens_mistral': 315, 'n_tokens_neox': 322, 'n_words': 81}