First version

This commit is contained in:
2022-04-09 23:24:47 +03:00
parent 2fc2ff1d7f
commit 559f6878f7
18 changed files with 425 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
import pytest
from src.repository_name import is_valid_format
@pytest.mark.parametrize(
"name_format, expected",
[
("{blabla}", False),
("", True),
("{owner}/{name}", True),
]
)
def test_name_formatting(name_format, expected):
assert is_valid_format(name_format) == expected