mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 23:09:35 +01:00
exp show: cleanup UI issues (#5361)
* exp show: add -n/--num to display the last N commits from HEAD * exp run: fix empty commit with no changes * add test for exp show with multiple commits * allow -n greater than num commits in repo * review fix
This commit is contained in:
@@ -65,6 +65,8 @@ def test_experiments_show(dvc, scm, mocker):
|
||||
"--all-branches",
|
||||
"--all-commits",
|
||||
"--sha",
|
||||
"-n",
|
||||
"1",
|
||||
]
|
||||
)
|
||||
assert cli_args.func == CmdExperimentsShow
|
||||
@@ -80,6 +82,7 @@ def test_experiments_show(dvc, scm, mocker):
|
||||
all_branches=True,
|
||||
all_commits=True,
|
||||
sha_only=True,
|
||||
num=1,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user