Push: accept multiple as input(#7196)

fix: #7196

New feature: now `dvc exp push` can accept a list of experiment names as input.

1. refactor of experiment push
2. add support to list input for the `exp push`
3. add function tests for the multi exp push
4. add unit test for the arg parse
This commit is contained in:
karajan1001
2022-01-18 17:31:55 +08:00
committed by Gao
parent 13238e9716
commit 9bb6494e55
8 changed files with 128 additions and 67 deletions
+3 -2
View File
@@ -221,7 +221,8 @@ def test_experiments_push(dvc, scm, mocker):
"experiments",
"push",
"origin",
"experiment",
"experiment1",
"experiment2",
"--force",
"--no-cache",
"--remote",
@@ -241,7 +242,7 @@ def test_experiments_push(dvc, scm, mocker):
m.assert_called_once_with(
cmd.repo,
"origin",
"experiment",
["experiment1", "experiment2"],
force=True,
push_cache=False,
dvc_remote="my-remote",