@@ -37,11 +37,11 @@ def get_executor_settings(self) -> Optional[ExecutorSettingsBase]:
37
37
self .REPORT_PATH = Path .cwd () / "efficiency_report_test"
38
38
39
39
return ExecutorSettings (
40
- efficiency_report = True ,
41
- init_seconds_before_status_checks = 5 ,
42
- efficiency_report_path = self .REPORT_PATH ,
43
- # seconds_between_status_checks=5,
44
- )
40
+ efficiency_report = True ,
41
+ init_seconds_before_status_checks = 5 ,
42
+ efficiency_report_path = self .REPORT_PATH ,
43
+ # seconds_between_status_checks=5,
44
+ )
45
45
46
46
def test_simple_workflow (self , tmp_path ):
47
47
# for an unkown reason, the efficiency report is not created
@@ -62,9 +62,11 @@ def test_simple_workflow(self, tmp_path):
62
62
report_found = False
63
63
64
64
report_path = None
65
+ # using a short handle for the expected path
66
+ expected_path = self .REPORT_PATH
65
67
66
68
# Check if the efficiency report file exists - based on the regex pattern
67
- for fname in os .listdir (self . REPORT_PATH ):
69
+ for fname in os .listdir (expected_path ):
68
70
if pattern .match (fname ):
69
71
report_found = True
70
72
report_path = os .path .join (expected_path , fname )
0 commit comments