First version
This commit is contained in:
14
tests/test_repository_name.py
Normal file
14
tests/test_repository_name.py
Normal 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
|
||||
Reference in New Issue
Block a user