mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
pull/fetch/push: add stats (#3735)
* pull/fetch/push: add stats * fix typo: s/logging/logger * pull: make stats detailed, with summary at the bottom * tests: mock properly, set return_value * add a line space
This commit is contained in:
@@ -22,7 +22,7 @@ def test_fetch(mocker):
|
||||
assert cli_args.func == CmdDataFetch
|
||||
|
||||
cmd = cli_args.func(cli_args)
|
||||
m = mocker.patch.object(cmd.repo, "fetch", autospec=True)
|
||||
m = mocker.patch.object(cmd.repo, "fetch", autospec=True, return_value=0)
|
||||
|
||||
assert cmd.run() == 0
|
||||
|
||||
@@ -96,7 +96,7 @@ def test_push(mocker):
|
||||
assert cli_args.func == CmdDataPush
|
||||
|
||||
cmd = cli_args.func(cli_args)
|
||||
m = mocker.patch.object(cmd.repo, "push", autospec=True)
|
||||
m = mocker.patch.object(cmd.repo, "push", autospec=True, return_value=0)
|
||||
|
||||
assert cmd.run() == 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user