This commit is contained in:
@@ -18,8 +18,8 @@ from src.config import Config, read_ini_config
|
||||
token="something",
|
||||
repository_format="{owner}/{name}",
|
||||
out_dir="/home/user/repositories",
|
||||
endpoint="https://example.com",
|
||||
ssh_key_path="/tmp/no_key"
|
||||
endpoint="https://example.com",
|
||||
ssh_key_path="/tmp/no_key",
|
||||
),
|
||||
),
|
||||
("[main]", None),
|
||||
|
||||
@@ -9,7 +9,7 @@ from src.repository_name import is_valid_format
|
||||
("{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