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:
Saugat Pachhai
2020-05-05 16:10:50 +03:00
committed by GitHub
parent 795f001929
commit d00bd4dfe5
9 changed files with 149 additions and 72 deletions
+2 -2
View File
@@ -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