mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
exp push/pull: default to head rev
This commit is contained in:
committed by
Peter Rowlands (변기호)
parent
b20a59d748
commit
04b50c5cd0
@@ -294,12 +294,7 @@ def test_experiments_push(dvc, scm, mocker):
|
||||
)
|
||||
cmd = cli_args.func(cli_args)
|
||||
|
||||
with pytest.raises(InvalidArgumentError) as exp_info:
|
||||
cmd.run()
|
||||
assert (
|
||||
str(exp_info.value) == "Either provide an `experiment` argument"
|
||||
", or use the `--rev` or `--all-commits` flag."
|
||||
)
|
||||
assert cmd.run() == 0
|
||||
|
||||
|
||||
def test_experiments_pull(dvc, scm, mocker):
|
||||
@@ -351,12 +346,7 @@ def test_experiments_pull(dvc, scm, mocker):
|
||||
)
|
||||
cmd = cli_args.func(cli_args)
|
||||
|
||||
with pytest.raises(InvalidArgumentError) as exp_info:
|
||||
cmd.run()
|
||||
assert (
|
||||
str(exp_info.value) == "Either provide an `experiment` argument"
|
||||
", or use the `--rev` or `--all-commits` flag."
|
||||
)
|
||||
assert cmd.run() == 0
|
||||
|
||||
|
||||
def test_experiments_remove_flag(dvc, scm, mocker, capsys, caplog):
|
||||
|
||||
Reference in New Issue
Block a user