File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ import os
12from concurrent .futures import ProcessPoolExecutor , as_completed
23from contextlib import redirect_stderr , redirect_stdout
34from io import StringIO
@@ -186,7 +187,10 @@ def run_test(
186187 output = captured_output .getvalue ()
187188
188189 # Write to individual log file
189- log_filename = f"test_{ test_name } .log"
190+ log_filename = f"images_logs/test_{ test_name } .log"
191+ os .makedirs (
192+ "images_logs" , exist_ok = True
193+ ) # Creates directory if it doesn't exist
190194 with open (log_filename , "w" ) as f :
191195 f .write (output )
192196
@@ -262,6 +266,7 @@ def test_images():
262266 construct_markdown_summary_table (ordered_results_dict , "test_images_summary.md" )
263267
264268 print ("\n Test Summary:" )
269+ # Using alignment specifiers:
265270 print (f"{ 'Test' :<50} { 'Total' :>10} { 'Correct' :>10} { 'Status' :>10} " )
266271 print ("-" * 82 )
267272
You can’t perform that action at this time.
0 commit comments