Skip to content

Commit 98a0cea

Browse files
committed
fix: the TOTAL word in markdown should look the same as it will be rendered
1 parent 4143e7a commit 98a0cea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coverage/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def report_markdown(
169169
# Write the TOTAL line
170170
formats.update(
171171
dict(
172-
Name="|{:>{name_len}} |",
172+
Name="|{:{name_len}} |",
173173
Cover="{:>{n}} |",
174174
),
175175
)

tests/test_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ def missing(x, y):
10551055
assert self.line_count(report) == 4
10561056
report_lines = report.split("\n")
10571057
assert report_lines[2] == "| mymissing.py | 14 | 3 | 79% | 3-4, 10 |"
1058-
assert report_lines[3] == "| **TOTAL** | **14** | **3** | **79%** | |"
1058+
assert report_lines[3] == "| **TOTAL** | **14** | **3** | **79%** | |"
10591059

10601060
assert self.get_report(cov, output_format="total") == "79\n"
10611061
assert self.get_report(cov, output_format="total", precision=2) == "78.57\n"

0 commit comments

Comments
 (0)