From 0ace858645274e80ebd0068f59c89a7b1faaaf6d Mon Sep 17 00:00:00 2001 From: Kirill Markin Date: Sun, 25 May 2025 11:14:12 +0300 Subject: [PATCH] Add debug output to understand CI test failure --- tests/test_core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_core.py b/tests/test_core.py index f0dd86f..8f92027 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -523,6 +523,13 @@ def test_generate_output_content_splitting_very_small_limit(mock_get_tree: Magic # The splitting logic works per chunk, so raw_content (8 words) + closing_tag (1 word) = 9 words total # should fit in one segment when they're placed together + # Debug: Let's see what segments actually look like in CI + print(f"\nDEBUG: Generated {len(segments)} segments:") + for i, segment in enumerate(segments): + print(f"Segment {i+1} ({count_words_for_test(segment)} words):") + print(f"'{segment}'") + print("---") + found_raw_content_segment = False for segment in segments: if raw_file1_content in segment: