Skip to content

Commit 29414cf

Browse files
committed
tests(config-variations): Git schemes in repo URLs
1 parent 34966a5 commit 29414cf

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tests/test_sync.py

+29
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,35 @@ class ConfigVariationTest(t.NamedTuple):
133133
""",
134134
remote_list=["git_scheme_repo"],
135135
),
136+
ConfigVariationTest(
137+
test_id="expanded_repo_style_with_unprefixed_remote_3",
138+
config_tpl="""
139+
{tmp_path}/study/myrepo:
140+
{CLONE_NAME}:
141+
repo: git+file://{dir}
142+
remotes:
143+
git_scheme_repo: [email protected]:org/repo.git
144+
""",
145+
remote_list=["git_scheme_repo"],
146+
),
147+
ConfigVariationTest(
148+
test_id="expanded_repo_style_with_unprefixed_repo",
149+
config_tpl="""
150+
{tmp_path}/study/myrepo:
151+
{CLONE_NAME}:
152+
repo: [email protected]:org/repo.git
153+
""",
154+
remote_list=["git_scheme_repo"],
155+
),
156+
ConfigVariationTest(
157+
test_id="expanded_repo_style_with_prefixed_repo_3_with_prefix",
158+
config_tpl="""
159+
{tmp_path}/study/myrepo:
160+
{CLONE_NAME}:
161+
repo: git+ssh://[email protected]:org/repo.git
162+
""",
163+
remote_list=["git_scheme_repo"],
164+
),
136165
]
137166

138167

0 commit comments

Comments
 (0)