You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import pytest
|
|
from poetry_template.main import sum, mul
|
|
|
|
def test_sum():
|
|
a = 1
|
|
b = 2
|
|
s = 3
|
|
|
|
assert s == sum(a, b)
|
|
|
|
|
|
def test_sum_wrong():
|
|
a = 1
|
|
b = 2
|
|
s_wrong = 4
|
|
|
|
assert s_wrong != sum(a, b)
|
|
|
|
def test_mul():
|
|
a = 1
|
|
b = 2
|
|
m = 2
|
|
|
|
assert m == mul(a, b)
|