Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Dec 28, 2024
1 parent add6745 commit cd0d555
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_sanitize_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@


@pytest.mark.parametrize(
"test_input,expected",
"test_input, expected",
[
("", ""),
("fio", "fio"),
(0, 0),
(False, False),
Expand All @@ -16,22 +15,23 @@
],
)
def test_sanitize_value_no_effect(test_input, expected):
sanitize_value(test_input) == expected
assert sanitize_value(test_input) == expected


@pytest.mark.parametrize(
"test_input,expected",
"test_input, expected",
[
(" \n ", ""),
("", None),
(" \n ", None),
("\nfio ", "fio"),
],
)
def test_sanitize_value_strip(test_input, expected):
sanitize_value(test_input) == expected
assert sanitize_value(test_input) == expected


@pytest.mark.parametrize(
"test_input,convert,expected",
"test_input, convert, expected",
[
("abc", str, "abc"),
("žluťoučký kůň", str, "žluťoučký kůň"),
Expand All @@ -45,4 +45,4 @@ def test_sanitize_value_strip(test_input, expected):
],
)
def test_sanitize_value_convert(test_input, convert, expected):
sanitize_value(test_input, convert) == expected
assert sanitize_value(test_input, convert) == expected

0 comments on commit cd0d555

Please sign in to comment.