mirror of
https://github.com/kirill-markin/repo-to-text.git
synced 2025-12-06 03:22:23 -08:00
Add debug output to understand CI test failure
This commit is contained in:
parent
44153cde98
commit
0ace858645
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
# 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
|
# 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
|
found_raw_content_segment = False
|
||||||
for segment in segments:
|
for segment in segments:
|
||||||
if raw_file1_content in segment:
|
if raw_file1_content in segment:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue