Skip to content

Commit

Permalink
Make tests using the --singular-remote option more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerejkowsky committed Dec 16, 2023
1 parent ad4ba3a commit 2e82706
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions tsrc/test/cli/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,13 @@ def test_singular_remote(
* Check that foo only has one remote called 'origin'
"""
foo_url = git_server.add_repo("foo")
vpn_url = "/does/not/exist"
# fmt: off
git_server.manifest.set_repo_remotes(
"foo",
[("origin", foo_url),
("vpn", vpn_url)])
# fmt: on
[
("origin", foo_url),
("vpn", "/does/not/exist"),
],
)

# only use "origin" remote
tsrc_cli.run("init", git_server.manifest_url, "-r", "origin")
Expand Down
12 changes: 6 additions & 6 deletions tsrc/test/cli/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,14 +742,14 @@ def test_sync_with_singular_remote(
* Check that 'tsrc sync' does not try and fetch the 'vpn' remote
"""
foo_url = git_server.add_repo("foo")
vpn_url = "/does/not/exist"
# fmt: off
git_server.manifest.set_repo_remotes(
"foo",
[("origin", foo_url),
("vpn", vpn_url)])
# fmt: on
tsrc_cli.run("init", git_server.manifest_url, "-r", "origin")
[
("origin", foo_url),
("vpn", "/does/not/exist"),
],
)
tsrc_cli.run("init", git_server.manifest_url, "--singular-remote", "origin")

tsrc_cli.run("sync")

Expand Down

0 comments on commit 2e82706

Please sign in to comment.