Skip to content

Commit 29167fd

Browse files
committedFeb 23, 2024·
tests(config-variations): Git schemes in repo URLs
1 parent 7b77b75 commit 29167fd

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
@@ -128,6 +128,35 @@ class ConfigVariationTest(t.NamedTuple):
128128
""",
129129
remote_list=["git_scheme_repo"],
130130
),
131+
ConfigVariationTest(
132+
test_id="expanded_repo_style_with_unprefixed_remote_3",
133+
config_tpl="""
134+
{tmp_path}/study/myrepo:
135+
{CLONE_NAME}:
136+
repo: git+file://{dir}
137+
remotes:
138+
git_scheme_repo: user@myhostname.de:org/repo.git
139+
""",
140+
remote_list=["git_scheme_repo"],
141+
),
142+
ConfigVariationTest(
143+
test_id="expanded_repo_style_with_unprefixed_repo",
144+
config_tpl="""
145+
{tmp_path}/study/myrepo:
146+
{CLONE_NAME}:
147+
repo: user@myhostname.de:org/repo.git
148+
""",
149+
remote_list=["git_scheme_repo"],
150+
),
151+
ConfigVariationTest(
152+
test_id="expanded_repo_style_with_prefixed_repo_3_with_prefix",
153+
config_tpl="""
154+
{tmp_path}/study/myrepo:
155+
{CLONE_NAME}:
156+
repo: git+ssh://user@myhostname.de:org/repo.git
157+
""",
158+
remote_list=["git_scheme_repo"],
159+
),
131160
]
132161

133162

0 commit comments

Comments
 (0)
Please sign in to comment.