Skip to content

Commit 9c7b3cd

Browse files
committed
fix: name handle ...
1 parent 92836de commit 9c7b3cd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/tests.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def get_executor_settings(self) -> Optional[ExecutorSettingsBase]:
3737
self.REPORT_PATH = Path.cwd() / "efficiency_report_test"
3838

3939
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+
)
4545

4646
def test_simple_workflow(self, tmp_path):
4747
# for an unkown reason, the efficiency report is not created
@@ -62,9 +62,11 @@ def test_simple_workflow(self, tmp_path):
6262
report_found = False
6363

6464
report_path = None
65+
# using a short handle for the expected path
66+
expected_path = self.REPORT_PATH
6567

6668
# 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):
6870
if pattern.match(fname):
6971
report_found = True
7072
report_path = os.path.join(expected_path, fname)

0 commit comments

Comments
 (0)