MCPcopy
hub / github.com/impira/docquery / test_wrong_string_ocr_reader

Function test_wrong_string_ocr_reader

tests/test_ocr_reader.py:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 },
36)
37def 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(

Callers

nothing calls this directly

Calls 1

get_ocr_readerFunction · 0.90

Tested by

no test coverage detected