Remove Ghostscript UserUnit warning

All supported Ghostscript versions have proper UserUnit support.
This commit is contained in:
James R. Barlow
2023-04-29 00:42:38 -07:00
parent fcbdeb8dbe
commit fe9f52fbe7
2 changed files with 3 additions and 17 deletions
+3 -8
View File
@@ -20,18 +20,13 @@ def poster(resources):
return resources / 'poster.pdf'
def test_userunit_ghostscript_fails(poster, no_outpdf, caplog):
result = run_ocrmypdf_api(poster, no_outpdf, '--output-type=pdfa')
assert result == ExitCode.input_file
assert 'not supported by Ghostscript' in caplog.text
def test_userunit_pdf_passes(poster, outpdf):
@pytest.mark.parametrize("mode", ['pdf', 'pdfa'])
def test_userunit_pdf_passes(mode, poster, outpdf):
before = PdfInfo(poster)
check_ocrmypdf(
poster,
outpdf,
'--output-type=pdf',
f'--output-type={mode}',
'--plugin',
'tests/plugins/tesseract_cache.py',
)