lllin000_PaperForge/tests
Research Assistant 935d948ede feat(05-01): add OCR state machine tests covering job transitions
- Test pending->queued transition on job submission
- Test processing->done transition when polling returns success
- Test processing->error transition on API error response
- Test processing->blocked transition via HTTPError 401 (classify_error maps to blocked)
- Test sync_ocr_queue skips done/blocked items from existing queue
- Test cleanup_blocked_ocr_dirs removes empty dirs, preserves dirs with payload
- Test all 7 OCR states (pending, queued, running, done, error, blocked, nopdf) don't crash

Key: patch requests.post with side_effect=HTTPError 401 to trigger
classify_error path, since registry token is always present in test env.
2026-04-23 19:37:15 +08:00
..
fixtures feat(02-03): implement ocr_doctor() with L1-L4 diagnostics 2026-04-23 12:58:54 +08:00
conftest.py test(05-02): add fixture vault factory for smoke testing 2026-04-23 18:46:13 +08:00
test_cli_paths.py test(01-02): add failing test for CLI paths output and worker dispatch 2026-04-23 11:44:09 +08:00
test_cli_worker_dispatch.py feat(02-03): add ocr doctor CLI dispatch, tests, and docs 2026-04-23 12:59:04 +08:00
test_command_docs.py test(01-04): add failing tests for stable command docs 2026-04-23 11:37:40 +08:00
test_config.py test(01-01): add failing test for config resolver contract 2026-04-23 11:35:52 +08:00
test_ld_deep_config.py feat(01-03): wire worker and /LD-deep to shared resolver 2026-04-23 12:00:11 +08:00
test_legacy_worker_compat.py feat(01-03): wire worker and /LD-deep to shared resolver 2026-04-23 12:00:11 +08:00
test_ocr_doctor.py feat(02-03): implement ocr_doctor() with L1-L4 diagnostics 2026-04-23 12:58:54 +08:00
test_ocr_state_machine.py feat(05-01): add OCR state machine tests covering job transitions 2026-04-23 19:37:15 +08:00
test_pdf_resolver.py test(02-01): add failing tests for pdf_resolver path resolution 2026-04-23 12:54:38 +08:00
test_smoke.py test(05-02): add end-to-end smoke test suite covering full pipeline 2026-04-23 18:46:28 +08:00