Skip to content

Commit 0ace858

Browse files
committed
Add debug output to understand CI test failure
1 parent 44153cd commit 0ace858

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_core.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,13 @@ def test_generate_output_content_splitting_very_small_limit(mock_get_tree: Magic
523523
# The splitting logic works per chunk, so raw_content (8 words) + closing_tag (1 word) = 9 words total
524524
# should fit in one segment when they're placed together
525525

526+
# Debug: Let's see what segments actually look like in CI
527+
print(f"\nDEBUG: Generated {len(segments)} segments:")
528+
for i, segment in enumerate(segments):
529+
print(f"Segment {i+1} ({count_words_for_test(segment)} words):")
530+
print(f"'{segment}'")
531+
print("---")
532+
526533
found_raw_content_segment = False
527534
for segment in segments:
528535
if raw_file1_content in segment:

0 commit comments

Comments
 (0)