Files
poetry-template/tests/test_main.py
T
KKlochko aa829a4e75
continuous-integration/drone/push Build is passing
Fixed the test
2023-04-01 12:48:04 +03:00

25 lines
297 B
Python

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)