- Add module-level guards for pytesseract and PIL.Image (enables patching in tests) - Move `import io` from inside _ocr_page to module-level stdlib imports - Extract _ensure_pil_image() helper with TypeError guard so isinstance check does not blow up when Image is patched to a MagicMock in tests - Add 3 new tests: pdfplumber=None ImportError, sparse-page OCR fallback, OCR render failure returns empty chunk - Coverage: 96% (up from 64%) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_client.py | ||
| test_ingest.py | ||
| test_models.py | ||
| test_pdf.py | ||