first commit

This commit is contained in:
2025-11-12 11:34:34 +03:00
commit 29280f3e50
77 changed files with 272246 additions and 0 deletions
+21
View File
@@ -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!'