From ed8f5ecbdb87803a19a1dedcc05b08d02665086e Mon Sep 17 00:00:00 2001 From: tligui_y Date: Mon, 14 Jul 2025 13:11:37 +0200 Subject: [PATCH] Update tests/test_string_utils.py --- tests/test_string_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_string_utils.py b/tests/test_string_utils.py index 81e0526d..7c65b292 100644 --- a/tests/test_string_utils.py +++ b/tests/test_string_utils.py @@ -7,16 +7,16 @@ import warnings def test_uppercase_normal(): # Normal string uppercase conversion - assert string_utils.uppercase("hello") == "HELLO" + assert uppercase("hello") == "HELLO" def test_uppercase_type_error(): # Raises TypeError when input is None (invalid input) with pytest.raises(TypeError): - string_utils.uppercase(None) + uppercase(None) def test_reverse_string(): # Tests string reversal correctness - assert string_utils.reverse("abc") == "cba" + assert reverse("abc") == "cba" def test_warning_emit(): # Emits a Python UserWarning, checks warning capture @@ -47,4 +47,4 @@ def test_import_warning(): @pytest.mark.xfail(reason="Expected failure: uppercase does not handle digits") def test_xfail_uppercase_digits(): # Expected fail test because uppercase won't change digits - assert string_utils.uppercase("abc123") == "ABC1234" + assert uppercase("abc123") == "ABC1234"