提交 943f8cef 编写于 作者: C Caio Carrara

Normalizes the Result rate to always float

Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
上级 dc8aba5d
......@@ -114,6 +114,6 @@ class Result(object):
def rate(self):
total = float(self.tests_total - self.skipped - self.cancelled)
if not total:
return 0
return 0.0
succeeded = float(self.passed + self.warned)
return 100 * (succeeded / total)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册