Commit Graph

2 Commits

Author SHA1 Message Date
MiroFish Contributor 9c1706f71d test: add unit tests for zep_paging module
Add comprehensive tests for fetch_all_nodes and fetch_all_edges functions:
- Test success on first attempt
- Test retry behavior on transient errors
- Test max_retries exhaustion
- Test pagination with uuid_cursor
- Test max_items limit enforcement
- Test missing uuid field handling
- Test page_size parameter

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 05:08:52 +08:00
MiroFish Contributor 6a9cd7595b test: add unit tests for file_parser module
- Added pytest.ini configuration for test discovery
- Added tests/__init__.py package marker
- Added 22 unit tests covering:
  - _read_text_with_fallback: UTF-8, GBK, Latin-1, replacement chars
  - FileParser: extensions, nonexistent file, unsupported format, md/txt extraction
  - FileParser.extract_from_multiple: valid files and error handling
  - split_text_into_chunks: short text, empty text, chunk size, overlap, sentence boundaries

All tests pass with direct module import to avoid Flask initialization issues.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 01:05:09 +08:00