We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9252623 commit 652b923Copy full SHA for 652b923
exercises/044-static_methods/test.py
@@ -17,9 +17,7 @@ def test_add_numbers_static_method_returns_expected_sum():
17
result = MathOperations.add_numbers(5, 7)
18
assert result == 12
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")
+@pytest.mark.it("The 'add_numbers' static method should return the expected sum. Testing with different values")
+def test_add_numbers_static_method_returns_expected_sum_for_different_values():
+ result = MathOperations.add_numbers(10, 20)
+ assert result == 30
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments