mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 15:28:28 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user