dvc: add trailing newline in --show-md (#4124)

To finalize md table.

Fixes #4123
This commit is contained in:
Ruslan Kuprieiev
2020-06-27 00:02:18 +03:00
committed by GitHub
parent 35e0dd9206
commit d809723bc9
4 changed files with 17 additions and 7 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ def test_no_changes(mocker, caplog):
def test_show_md_empty():
assert _show_md({}) == ("| Status | Path |\n" "|----------|--------|")
assert _show_md({}) == ("| Status | Path |\n|----------|--------|\n")
def test_show_md():
@@ -138,5 +138,5 @@ def test_show_md():
"| deleted | data{sep}bar |\n"
"| deleted | data{sep}foo |\n"
"| deleted | zoo |\n"
"| modified | file |"
"| modified | file |\n"
).format(sep=os.path.sep)