dify/api/tests
Yeuoly a84437b245 refactor: refactor FileChunk to use Pydantic validators and extract blob processing logic
- Refactor FileChunk class to use Pydantic field and model validators
- Add proper validation for total_length with size constraints
- Implement __iadd__ operator for cleaner chunk appending
- Extract blob chunk processing logic into a dedicated _process_blob_chunks method
- Add comprehensive docstrings for better code documentation
- Add unit tests for FileChunk class

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 22:18:11 +08:00
..
artifact_tests/dependencies build: introduce uv as Python package manager (#16317) 2025-04-15 16:16:49 +08:00
integration_tests fix: ensure vector database cleanup on dataset deletion regardless of document presence (affects all 33 vector databases) (#23574) 2025-08-08 09:18:43 +08:00
test_containers_integration_tests Feat add testcontainers test for app dsl service (#23675) 2025-08-10 11:03:46 +08:00
unit_tests refactor: refactor FileChunk to use Pydantic validators and extract blob processing logic 2025-08-12 22:18:11 +08:00
__init__.py Initial commit 2023-05-15 08:51:32 +08:00