unpaper-args: add test case and harden feature

This commit is contained in:
James R. Barlow
2019-02-07 16:21:02 -08:00
parent 9a4493f211
commit f095e91cb4
3 changed files with 101 additions and 25 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ def no_outpdf(tmpdir):
@pytest.helpers.register
def check_ocrmypdf(input_file, output_file, *args, env=None):
"Run ocrmypdf and confirmed that a valid file was created"
"""Run ocrmypdf and confirmed that a valid file was created"""
p, out, err = run_ocrmypdf(input_file, output_file, *args, env=env)
# ensure py.test collects the output, use -s to view