mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-07-03 15:10:22 +00:00
24 lines
630 B
Python
24 lines
630 B
Python
![]() |
# © 2021 James R. Barlow: github.com/jbarlow83
|
||
|
#
|
||
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||
|
|
||
|
|
||
|
import pytest
|
||
|
|
||
|
from ocrmypdf import ExitCode
|
||
|
|
||
|
from .conftest import run_ocrmypdf_api
|
||
|
|
||
|
|
||
|
def test_child_page4(resources, no_outpdf):
|
||
|
exitcode = run_ocrmypdf_api(
|
||
|
resources / 'multipage.pdf',
|
||
|
no_outpdf,
|
||
|
'--force-ocr',
|
||
|
'--plugin',
|
||
|
'tests/plugins/tesseract_simulate_oom_killer.py',
|
||
|
)
|
||
|
assert exitcode == ExitCode.child_process_error
|