Commit graph

18 commits

Author SHA1 Message Date
Kirill Markin
de1c84eca3
Fix test assertion for content splitting logic
- Corrected test_generate_output_content_splitting_very_small_limit to expect 10 words instead of 8
- The test now properly accounts for opening tag (2 words) + raw content (8 words) in the same segment
- Reflects actual behavior where opening tag and content are grouped together when they fit within word limit
2025-05-25 11:20:34 +03:00
Kirill Markin
0ace858645
Add debug output to understand CI test failure 2025-05-25 11:14:12 +03:00
Kirill Markin
44153cde98
Fix failing test: test_generate_output_content_splitting_very_small_limit
- Corrected word count expectations for closing XML tag
- Fixed test logic to match actual output segment structure
- The closing tag '</content>' is 1 word, not 2 as previously assumed
- All 43 tests now pass successfully
2025-05-25 11:12:48 +03:00
Kirill Markin
689dd362ec
Update test functions to include explicit type annotations for caplog
- Modify test_load_additional_specs_invalid_max_words_string, test_load_additional_specs_invalid_max_words_negative, and test_load_additional_specs_max_words_is_none_in_yaml to specify caplog as pytest.LogCaptureFixture.
- Update test_save_repo_to_text_stdout_with_splitting and test_save_repo_to_text_empty_segments to annotate capsys and caplog respectively for improved type safety and clarity.
2025-05-25 11:03:20 +03:00
Kirill Markin
57026bd52e
Enhance error handling in process_line and update display path in save_repo_to_text
- Add fallback logic for os.path.relpath in process_line to handle cases where it fails, ensuring robust path resolution.
- Update save_repo_to_text to use basename for displaying file paths, improving clarity in success messages and output.
- Modify tests to assert on basename instead of relative path, aligning with the new display logic.
2025-05-25 11:02:06 +03:00
Zhan Li
34aa48c0a1 address test errors 2025-05-25 00:33:35 -07:00
Zhan Li
e066b481af add support for splitted text by maximum word count 2025-05-25 00:11:54 -07:00
Kirill Markin
9431ff9d07
Change output format to XML
- Change output format from markdown code blocks to structured XML
- Add XML tags for better structure and parsing
- Update documentation and README
- Update version to 0.6.0
2025-04-19 13:26:18 +03:00
Ghulam Ahmed
d8977b8cf4 chore: Added package-lock.json to ignore-content in default settings 2025-03-08 22:59:52 +03:00
Kirill Markin
4eac47029f
linter clenaup 2024-12-17 15:10:49 +01:00
Kirill Markin
a364328e60
remove_empty_dirs new logic and linter cleanup 2024-12-17 15:06:59 +01:00
Kirill Markin
5f283feefd
linter cleanup 2024-12-17 14:41:42 +01:00
Kirill Markin
e39e7a8896
strict-typing-and-error-handling 2024-12-16 10:24:02 +01:00
Kirill Markin
dbfa602cd3
Refactor devide logic by files and more tests 2024-12-16 01:29:31 +01:00
Kirill Markin
bd0f242c08
tests baseline 2024-12-16 00:28:34 +01:00
Kirill Markin
bdc2f2be42 filenames cleanup 2024-06-09 10:09:49 +02:00
Kirill Markin
a836beb856 output-dir option 2024-06-08 11:58:13 +02:00
Kirill Markin
752ca966c4 first draft 2024-06-08 09:44:34 +02:00