5
0

* Fixed category to 1.0, when all tests are skipped.

This commit is contained in:
SAVELIY BAKTURIN
2026-04-09 08:57:44 +00:00
parent f7b18385e0
commit bfab8f4686

View File

@@ -443,7 +443,7 @@ class Result:
total = self.__get_total_by_category(category)
passed = self.__get_passed_by_category(category)
if total == 0:
return Decimal(0.0)
return Decimal(1.0)
return Decimal(passed) / Decimal(total)
def __calculate_total(self, coefficients: Dict[str, float]) -> Decimal: