From cd0d5559cff069923165f533c36152acb703e671 Mon Sep 17 00:00:00 2001 From: Honza Javorek Date: Sat, 28 Dec 2024 15:48:43 +0100 Subject: [PATCH] fix tests --- tests/test_sanitize_value.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_sanitize_value.py b/tests/test_sanitize_value.py index 3b80f31..b700d88 100644 --- a/tests/test_sanitize_value.py +++ b/tests/test_sanitize_value.py @@ -4,9 +4,8 @@ @pytest.mark.parametrize( - "test_input,expected", + "test_input, expected", [ - ("", ""), ("fio", "fio"), (0, 0), (False, False), @@ -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ůň"), @@ -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