Skip to content

Commit 76bac29

Browse files
committed
Address comments
1 parent b8881c7 commit 76bac29

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integration/test_images.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from concurrent.futures import ProcessPoolExecutor, as_completed
23
from contextlib import redirect_stderr, redirect_stdout
34
from 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("\nTest Summary:")
269+
# Using alignment specifiers:
265270
print(f"{'Test':<50} {'Total':>10} {'Correct':>10} {'Status':>10}")
266271
print("-" * 82)
267272

0 commit comments

Comments
 (0)