()
| 35 | }, |
| 36 | ) |
| 37 | def test_wrong_string_ocr_reader(): |
| 38 | with pytest.raises(Exception) as e: |
| 39 | reader = get_ocr_reader("FAKE_OCR") |
| 40 | assert ( |
| 41 | "Failed to find: FAKE_OCR in the available ocr libraries. The choices are: ['tesseract', 'easyocr', 'dummy']" |
| 42 | in str(e.value) |
| 43 | ) |
| 44 | assert e.type == NoOCRReaderFound |
| 45 | |
| 46 | |
| 47 | @patch( |
nothing calls this directly
no test coverage detected