File tree

1 file changed

+4
-6
lines changed
  • exercises/044-static_methods

1 file changed

+4
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ def test_add_numbers_static_method_returns_expected_sum():
1717
result = MathOperations.add_numbers(5, 7)
1818
assert result == 12
1919

20-
@pytest.mark.it("There should be an instance of MathOperations")
21-
def test_math_operations_instance_exists():
22-
try:
23-
assert isinstance(MathOperations(), MathOperations)
24-
except AttributeError:
25-
raise AttributeError("An instance of 'MathOperations' should exist")
20+
@pytest.mark.it("The 'add_numbers' static method should return the expected sum. Testing with different values")
21+
def test_add_numbers_static_method_returns_expected_sum_for_different_values():
22+
result = MathOperations.add_numbers(10, 20)
23+
assert result == 30

0 commit comments

Comments
 (0)