open-notebook/tests
Luis Novo 26d5349750
fix: handle empty/whitespace source content without retry loop (#576)
Source.vectorize() wrapped its own ValueError in DatabaseOperationError,
bypassing the stop_on=[ValueError] retry guard in process_source_command.
This caused up to 15 retries when processing files with no extractable
text, blocking sync API requests indefinitely.

- Re-raise ValueError directly in Source.vectorize() instead of wrapping
- Add .strip() check to catch whitespace-only content
- Skip vectorization gracefully in save_source() when content is empty
- Add unit tests for vectorize error handling

Fixes #560
2026-02-14 18:09:07 -03:00
..
conftest.py feat: credential-based API key management (#477) (#540) 2026-02-10 08:30:22 -03:00
README.md Initial commit with all features 2024-10-21 14:56:10 -03:00
test_chunking.py feat: credential-based API key management (#477) (#540) 2026-02-10 08:30:22 -03:00
test_domain.py fix: handle empty/whitespace source content without retry loop (#576) 2026-02-14 18:09:07 -03:00
test_embedding.py feat: credential-based API key management (#477) (#540) 2026-02-10 08:30:22 -03:00
test_graphs.py Feat/localization tests docker (#371) 2026-01-15 13:51:05 -03:00
test_models_api.py Feat/localization tests docker (#371) 2026-01-15 13:51:05 -03:00
test_url_validation.py feat: credential-based API key management (#477) (#540) 2026-02-10 08:30:22 -03:00
test_utils.py feat: content-type aware chunking and unified embedding (#444) 2026-01-21 23:49:08 -03:00

Coming Soon