MCPcopy
hub / github.com/treeverse/dvc / test_list_shows_default

Function test_list_shows_default

tests/func/test_remote.py:118–129  ·  view source on GitHub ↗
(dvc, capsys)

Source from the content-addressed store, hash-verified

116
117
118def test_list_shows_default(dvc, capsys):
119 default_remote = "foo"
120 other_remote = "bar"
121 bucket_url = "s3://bucket/name"
122 assert main(["remote", "add", default_remote, bucket_url]) == 0
123 assert main(["remote", "add", other_remote, bucket_url]) == 0
124 assert main(["remote", "default", default_remote]) == 0
125 assert main(["remote", "list"]) == 0
126 out, _ = capsys.readouterr()
127 out_lines = out.splitlines()
128 assert out_lines[0].split() == [default_remote, bucket_url, "(default)"]
129 assert out_lines[1].split() == [other_remote, bucket_url]
130
131
132def test_upper_case_remote(tmp_dir, dvc, local_cloud):

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected