mirror of
https://github.com/bluxmit/alnoda-workspaces.git
synced 2024-09-09 14:40:57 +12:00
21 lines
No EOL
416 B
Python
21 lines
No EOL
416 B
Python
"""
|
|
You can auto-discover and run all tests with this command:
|
|
|
|
py.test
|
|
|
|
Documentation: https://docs.pytest.org/en/latest/
|
|
"""
|
|
|
|
|
|
from script import calc_result
|
|
|
|
|
|
def test_1():
|
|
test_numbers = [1, 1, 1, 1]
|
|
expected_result =1
|
|
assert calc_result(test_numbers) == expected_result
|
|
|
|
def test2():
|
|
test_numbers = [2, 3, 3, 4]
|
|
expected_result = 3
|
|
assert calc_result(test_numbers) == expected_result |