Added mul function.
continuous-integration/drone/push Build is failing Details

failing-test
KKlochko 2 years ago
parent 7b0365891a
commit b236f6ab73

@ -1,3 +1,7 @@
def sum(a, b):
return a+b
return a+b
def mul(a, b):
return a*b

@ -1,5 +1,5 @@
import pytest
from poetry_template.main import sum
from poetry_template.main import sum, mul
def test_sum():
a = 1
@ -15,3 +15,10 @@ def test_sum_wrong():
s_wrong = 4
assert s_wrong == sum(a, b)
def test_mul():
a = 1
b = 2
m = 2
assert m == mul(a, b)

Loading…
Cancel
Save