docling-studio/document-parser/tests
Pier-Jean Malandrino f9a1c56309 fix(domain): add guard clauses and frozen value objects
Add state-machine guard clauses to AnalysisJob transition methods
(mark_running, mark_completed, mark_failed, update_progress) to prevent
invalid status transitions. Make all domain value objects immutable with
frozen=True. Add 11 tests covering guard clause behavior.

Closes #132, closes #133
2026-04-10 12:04:44 +02:00
..
__init__.py Add a stronger testing strategy 2026-03-18 14:46:37 +01:00
test_analysis_service.py fix: preserve batch progress on analysis completion 2026-04-09 15:51:36 +02:00
test_api_endpoints.py feat: make document max size configurable via MAX_FILE_SIZE_MB env var 2026-04-08 10:27:38 +02:00
test_bbox.py Move bbox.py from domain/ to infra/ and unify coordinate logic 2026-04-03 13:17:26 +02:00
test_chunking.py Add tests for ChunkBbox domain, schema, and API serialization 2026-04-02 14:47:40 +02:00
test_document_service.py fix: limit upload to 5 MB / 20 pages max and increase conversion timeout 2026-04-07 10:56:16 +02:00
test_models.py fix(domain): add guard clauses and frozen value objects 2026-04-10 12:04:44 +02:00
test_pipeline_options.py fix: add document_timeout to PdfPipelineOptions (C1) 2026-04-07 15:32:38 +02:00
test_rate_limiter.py Add in-memory rate limiting middleware 2026-04-03 13:56:05 +02:00
test_repos.py Format backend codebase with ruff 2026-04-02 12:33:07 +02:00
test_robustness.py style: use single import style for infra.local_converter in tests 2026-04-07 15:39:02 +02:00
test_schemas.py Format backend codebase with ruff 2026-04-02 12:33:07 +02:00
test_serve_converter.py feat: batch large documents with page_range and progress reporting 2026-04-07 17:54:40 +02:00
test_settings.py feat: make document max size configurable via MAX_FILE_SIZE_MB env var 2026-04-08 10:27:38 +02:00