()
| 53 | }, |
| 54 | ) |
| 55 | def test_choosing_unavailable_ocr_reader(): |
| 56 | with pytest.raises(Exception) as e: |
| 57 | reader = get_ocr_reader("tesseract") |
| 58 | assert f"Failed to load: tesseract Please make sure its installed correctly." in str(e.value) |
| 59 | assert e.type == NoOCRReaderFound |
| 60 | |
| 61 | |
| 62 | @patch( |
nothing calls this directly
no test coverage detected