* Fixed category to 1.0, when all tests are skipped.
This commit is contained in:
@@ -443,7 +443,7 @@ class Result:
|
|||||||
total = self.__get_total_by_category(category)
|
total = self.__get_total_by_category(category)
|
||||||
passed = self.__get_passed_by_category(category)
|
passed = self.__get_passed_by_category(category)
|
||||||
if total == 0:
|
if total == 0:
|
||||||
return Decimal(0.0)
|
return Decimal(1.0)
|
||||||
return Decimal(passed) / Decimal(total)
|
return Decimal(passed) / Decimal(total)
|
||||||
|
|
||||||
def __calculate_total(self, coefficients: Dict[str, float]) -> Decimal:
|
def __calculate_total(self, coefficients: Dict[str, float]) -> Decimal:
|
||||||
|
|||||||
Reference in New Issue
Block a user