mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 17:00:23 +00:00
- 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. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| conftest.py | ||
| test_cli_paths.py | ||
| test_cli_worker_dispatch.py | ||
| test_command_docs.py | ||
| test_config.py | ||
| test_ld_deep_config.py | ||
| test_legacy_worker_compat.py | ||
| test_ocr_doctor.py | ||
| test_ocr_state_machine.py | ||
| test_pdf_resolver.py | ||
| test_smoke.py | ||