Skip to content

Commit c45514d

Browse files
Re enable
1 parent 7a1838e commit c45514d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/math_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def multiply(self, a, b):
1010
return a * b
1111

1212
def divide(self, a, b):
13-
if b == 0: # pragma: no cover
13+
if b == 0:
1414
raise ValueError("Cannot divide by zero.")
1515
return a / b
1616

tests/test_math_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def test_multiply(math_ops):
2424

2525
def test_divide(math_ops):
2626
assert math_ops.divide(10, 2) == 5
27-
# with pytest.raises(ValueError, match="Cannot divide by zero."):
28-
# math_ops.divide(10, 0)
27+
with pytest.raises(ValueError, match="Cannot divide by zero."):
28+
math_ops.divide(10, 0)
2929

3030

3131
def test_power(math_ops):

0 commit comments

Comments
 (0)