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

Function test_add

tests/func/test_cli.py:77–87  ·  view source on GitHub ↗
(dvc)

Source from the content-addressed store, hash-verified

75
76
77def test_add(dvc):
78 target1 = "1"
79 target2 = "2"
80
81 args = parse_args(["add", target1, target2])
82
83 cmd = args.func(args)
84 assert isinstance(cmd, CmdAdd)
85 assert args.targets == [target1, target2]
86
87 cmd.repo.close()
88
89
90def test_config_unset(dvc):

Callers

nothing calls this directly

Calls 3

parse_argsFunction · 0.90
funcMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected