File tree
Expand file treeCollapse file tree1 file changed
+4
-6
lines changed exercises/044-static_methods
Expand file treeCollapse file tree1 file changed
+4
-6
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -17,9 +17,7 @@ def test_add_numbers_static_method_returns_expected_sum():
|
17 | 17 | result = MathOperations.add_numbers(5, 7)
|
18 | 18 | assert result == 12
|
19 | 19 |
|
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 |
You can’t perform that action at this time.
0 commit comments