Skip to content

Commit 8075ac0

Browse files
committed
tests(config-variations): Git schemes in repo URLs
1 parent 119d821 commit 8075ac0

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
@@ -119,6 +119,35 @@ class ConfigVariationTest(t.NamedTuple):
119119
""",
120120
remote_list=["git_scheme_repo"],
121121
),
122+
ConfigVariationTest(
123+
test_id="expanded_repo_style_with_unprefixed_remote_3",
124+
config_tpl="""
125+
{tmp_path}/study/myrepo:
126+
{CLONE_NAME}:
127+
repo: git+file://{dir}
128+
remotes:
129+
git_scheme_repo: [email protected]:org/repo.git
130+
""",
131+
remote_list=["git_scheme_repo"],
132+
),
133+
ConfigVariationTest(
134+
test_id="expanded_repo_style_with_unprefixed_repo",
135+
config_tpl="""
136+
{tmp_path}/study/myrepo:
137+
{CLONE_NAME}:
138+
repo: [email protected]:org/repo.git
139+
""",
140+
remote_list=["git_scheme_repo"],
141+
),
142+
ConfigVariationTest(
143+
test_id="expanded_repo_style_with_prefixed_repo_3_with_prefix",
144+
config_tpl="""
145+
{tmp_path}/study/myrepo:
146+
{CLONE_NAME}:
147+
repo: git+ssh://[email protected]:org/repo.git
148+
""",
149+
remote_list=["git_scheme_repo"],
150+
),
122151
]
123152

124153

0 commit comments

Comments
 (0)