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

Function test_remote

tests/func/test_remote.py:15–29  ·  view source on GitHub ↗
(dvc)

Source from the content-addressed store, hash-verified

13
14
15def test_remote(dvc):
16 remotes = ["a", "b", "c"]
17
18 assert main(["remote", "list"]) == 0
19 assert main(["remote", "remove", remotes[0]]) != 0
20
21 for r in remotes:
22 assert main(["remote", "add", "--default", r, "s3://bucket/name"]) == 0
23
24 assert main(["remote", "list"]) == 0
25
26 assert main(["remote", "modify", remotes[0], "checksum_jobs", "1"]) == 0
27 assert main(["remote", "remove", remotes[0]]) == 0
28
29 assert main(["remote", "list"]) == 0
30
31
32def test_remote_add_relative_path(dvc):

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected