Skip to content

Commit

Permalink
tests(config-variations): Git schemes in repo URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Feb 23, 2024
1 parent 7b77b75 commit 29167fd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,35 @@ class ConfigVariationTest(t.NamedTuple):
""",
remote_list=["git_scheme_repo"],
),
ConfigVariationTest(
test_id="expanded_repo_style_with_unprefixed_remote_3",
config_tpl="""
{tmp_path}/study/myrepo:
{CLONE_NAME}:
repo: git+file://{dir}
remotes:
git_scheme_repo: [email protected]:org/repo.git
""",
remote_list=["git_scheme_repo"],
),
ConfigVariationTest(
test_id="expanded_repo_style_with_unprefixed_repo",
config_tpl="""
{tmp_path}/study/myrepo:
{CLONE_NAME}:
repo: [email protected]:org/repo.git
""",
remote_list=["git_scheme_repo"],
),
ConfigVariationTest(
test_id="expanded_repo_style_with_prefixed_repo_3_with_prefix",
config_tpl="""
{tmp_path}/study/myrepo:
{CLONE_NAME}:
repo: git+ssh://[email protected]:org/repo.git
""",
remote_list=["git_scheme_repo"],
),
]


Expand Down

0 comments on commit 29167fd

Please sign in to comment.