Commit 8f52cbb5 authored by Martin Jeřábek's avatar Martin Jeřábek

testfw: parse psl: display percentages to 1 decimal only

parent 431a221d
Pipeline #6837 passed with stages
in 12 minutes and 23 seconds
......@@ -205,7 +205,7 @@ def print_cov_cell_percentage(doc, tag, text, psl_points: List[TPslPoint],
if (merge_abs_vals):
if (ok + nok > 0):
with tag('td', bgcolor=color):
text("({}/{}) {}%".format(ok, summ, percents))
text("({}/{}) {:.1f}%".format(ok, summ, percents))
else:
with tag('td', bgcolor="Silver"):
text("NA")
......@@ -217,7 +217,7 @@ def print_cov_cell_percentage(doc, tag, text, psl_points: List[TPslPoint],
if (ok + nok > 0):
with tag('td', bgcolor=color):
text("{}%".format(percents))
text("{:.1f}%".format(percents))
else:
with tag('td', bgcolor="Silver"):
text("NA")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment