Tests: confirm OCR layer copied

This commit is contained in:
James R. Barlow
2018-05-01 23:16:41 -07:00
parent d787e1ea0f
commit bfd26e6ec6
+3 -1
View File
@@ -198,8 +198,10 @@ def test_force_ocr(spoof_tesseract_cache, resources, outpdf):
def test_skip_ocr(spoof_tesseract_cache, resources, outpdf):
check_ocrmypdf(resources / 'graph_ocred.pdf', outpdf, '-s',
out = check_ocrmypdf(resources / 'graph_ocred.pdf', outpdf, '-s',
env=spoof_tesseract_cache)
pdfinfo = PdfInfo(out)
assert pdfinfo[0].has_text
def test_argsfile(spoof_tesseract_noop, resources, outdir):