update: support --jobs even without --to-remote (#5434)

This commit is contained in:
Batuhan Taskaya
2021-02-09 17:58:59 +02:00
committed by GitHub
parent b370465209
commit 384a4113ca
3 changed files with 19 additions and 3 deletions
+11 -2
View File
@@ -4,7 +4,16 @@ from dvc.command.update import CmdUpdate
def test_update(dvc, mocker):
cli_args = parse_args(
["update", "target1", "target2", "--rev", "REV", "--recursive"]
[
"update",
"target1",
"target2",
"--rev",
"REV",
"--recursive",
"-j",
"8",
]
)
assert cli_args.func == CmdUpdate
cmd = cli_args.func(cli_args)
@@ -18,7 +27,7 @@ def test_update(dvc, mocker):
recursive=True,
to_remote=False,
remote=None,
jobs=None,
jobs=8,
)