diff: format summary to make it more human readable

Co-authored-by: @dmpetrov
This commit is contained in:
Mr. Outis
2020-01-30 13:15:49 -06:00
co-authored by @dmpetrov
parent fd1e6f457e
commit e5145e6c55
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -87,8 +87,8 @@ class CmdDiff(CmdBase):
)
groups.append(
"summary: added ({added}), deleted ({deleted}),"
" modified ({modified})".format_map(summary)
"files summary: {added} added, {deleted} deleted,"
" {modified} modified".format_map(summary)
)
return "\n\n".join(groups)
+2 -2
View File
@@ -19,7 +19,7 @@ def test_default(mocker, caplog):
"Added:\n"
" file\n"
"\n"
"summary: added (1), deleted (0), modified (0)"
"files summary: 1 added, 0 deleted, 0 modified"
) in caplog.text
@@ -51,7 +51,7 @@ def test_checksums(mocker, caplog):
"Modified:\n"
" AAAAAAAA..BBBBBBBB file\n"
"\n"
"summary: added (0), deleted (2), modified (1)"
"files summary: 0 added, 2 deleted, 1 modified"
) in caplog.text