LightRAG/tests
clssck 082a5a8fad test(lightrag,api): add comprehensive test coverage and S3 support
Add extensive test suites for API routes and utilities:
- Implement test_search_routes.py (406 lines) for search endpoint validation
- Implement test_upload_routes.py (724 lines) for document upload workflows
- Implement test_s3_client.py (618 lines) for S3 storage operations
- Implement test_citation_utils.py (352 lines) for citation extraction
- Implement test_chunking.py (216 lines) for text chunking validation
Add S3 storage client implementation:
- Create lightrag/storage/s3_client.py with S3 operations
- Add storage module initialization with exports
- Integrate S3 client with document upload handling
Enhance API routes and core functionality:
- Add search_routes.py with full-text and graph search endpoints
- Add upload_routes.py with multipart document upload support
- Update operate.py with bulk operations and health checks
- Enhance postgres_impl.py with bulk upsert and parameterized queries
- Update lightrag_server.py to register new API routes
- Improve utils.py with citation and formatting utilities
Update dependencies and configuration:
- Add S3 and test dependencies to pyproject.toml
- Update docker-compose.test.yml for testing environment
- Sync uv.lock with new dependencies
Apply code quality improvements across all modified files:
- Add type hints to function signatures
- Update imports and router initialization
- Fix logging and error handling
2025-12-05 23:13:39 +01:00
..
test_entity_resolution test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
conftest.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
README_WORKSPACE_ISOLATION_TESTS.md Fix linting 2025-11-18 08:07:54 +08:00
run_quality_tests.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_aquery_data_endpoint.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_chunking.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_citation_utils.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_curl_aquery_data.sh Fix linting 2025-10-06 04:57:11 +08:00
test_extraction_prompt_ab.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_graph_storage.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_lightrag_ollama_chat.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_orphan_connection_quality.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_overlap_validation.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_postgres_retry_integration.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_prompt_accuracy.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_prompt_quality_deep.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_rerank_chunking.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_s3_client.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_search_routes.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_upload_routes.py test(lightrag,api): add comprehensive test coverage and S3 support 2025-12-05 23:13:39 +01:00
test_workspace_isolation.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00
test_write_json_optimization.py test(lightrag,examples,api): comprehensive ruff formatting and type hints 2025-12-05 15:17:06 +01:00