@@ -57,15 +57,15 @@ def is_non_backend_failure(self):
5757
5858 def is_backend_failure (self ):
5959 return not self .is_success () and not self .is_non_backend_failure ()
60-
60+
6161 def to_short_str (self ):
62- if self in { TestResult .SUCCESS , TestResult .SUCCESS_UNDELEGATED }:
62+ if self in {TestResult .SUCCESS , TestResult .SUCCESS_UNDELEGATED }:
6363 return "Pass"
6464 elif self == TestResult .SKIPPED :
6565 return "Skip"
6666 else :
6767 return "Fail"
68-
68+
6969 def to_detail_str (self ):
7070 if self == TestResult .SUCCESS :
7171 return ""
@@ -160,7 +160,11 @@ class TestCaseSummary:
160160 """ The size of the PTE file in bytes. """
161161
162162 def is_delegated (self ):
163- return any (v > 0 for v in self .delegated_op_counts .values ()) if self .delegated_op_counts else False
163+ return (
164+ any (v > 0 for v in self .delegated_op_counts .values ())
165+ if self .delegated_op_counts
166+ else False
167+ )
164168
165169
166170class TestSessionState :
@@ -348,10 +352,14 @@ def generate_csv_report(summary: RunSummary, output: TextIO):
348352 "Result Detail" : record .result .to_detail_str (),
349353 "Delegated" : "True" if record .is_delegated () else "False" ,
350354 "Quantize Time (s)" : (
351- f"{ record .quantize_time .total_seconds ():.3f} " if record .quantize_time else None
355+ f"{ record .quantize_time .total_seconds ():.3f} "
356+ if record .quantize_time
357+ else None
352358 ),
353359 "Lower Time (s)" : (
354- f"{ record .lower_time .total_seconds ():.3f} " if record .lower_time else None
360+ f"{ record .lower_time .total_seconds ():.3f} "
361+ if record .lower_time
362+ else None
355363 ),
356364 }
357365 if record .params is not None :
0 commit comments