Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b2c03e8

Browse files
Update test.py
1 parent a9e1b82 commit b2c03e8

File tree

1 file changed

+6
-1
lines changed
  • exercises/045-class_methods

1 file changed

+6
-1
lines changed

‎exercises/045-class_methods/test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ def test_math_operations_has_calculate_circle_area_class_method():
1717
@pytest.mark.it("The 'calculate_circle_area' class method should return the expected circle area")
1818
def test_calculate_circle_area_class_method_returns_expected_area():
1919
result = MathOperations.calculate_circle_area(5)
20-
assert result == 78.53975
20+
assert result == 78.53975
21+
22+
@pytest.mark.it("The 'calculate_circle_area' class method should return the expected circle area. Testing with another value")
23+
def test_calculate_circle_area_class_method_returns_expected_area_for_radius_10():
24+
result = MathOperations.calculate_circle_area(10)
25+
assert result == 314.159

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /