Update tests/test_math_utils.py
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 43s

This commit is contained in:
2025-07-15 13:10:19 +02:00
parent 93bfd003a6
commit c2c5e66733
+10 -3
View File
@@ -19,9 +19,16 @@ def test_call_missing_function():
# Accessing a missing function attribute raises AttributeError
getattr(math_utils, "non_existent_function")()
def test_addition_pass():
# Test passes: correct addition
assert addition(2, 2) == 4
@pytest.mark.parametrize(
"a, b, expected",
[
(2, 2, 4),
(1, 5, 6),
(3, 4, 7),
]
)
def test_addition_pass(a, b, expected):
assert addition(a, b) == expected
def test_addition_fail():
# Assertion failure: expected incorrect result