first commit
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
from task15 import hello
|
||||
import pytest
|
||||
|
||||
# task 1
|
||||
@pytest.mark.parametrize(
|
||||
"arg,res",
|
||||
[
|
||||
('', 'Hello!'),
|
||||
('Masha', 'Hello, Masha!'),
|
||||
(' ', 'Hello, !'),
|
||||
('r', 'Hello, r!'),
|
||||
('123', 'Hello, 123!'),
|
||||
('I love machine learning', 'Hello, I love machine learning!')
|
||||
]
|
||||
)
|
||||
def test_one_argument(arg, res):
|
||||
assert hello(arg) == res
|
||||
|
||||
|
||||
def test_no_arguments():
|
||||
assert hello() == 'Hello!'
|
||||
Reference in New Issue
Block a user