ocr: ensure forked logging handlers also work under pytest

This commit is contained in:
Robert Sachunsky 2026-07-18 18:02:40 +02:00
parent 79a9bb0128
commit 4f7c5675fc
3 changed files with 11 additions and 6 deletions

View file

@ -30,7 +30,7 @@ def test_run_eynollah_ocr_filename(
'-o', str(outfile.parent),
] + options,
[
'output filename:'
str(infile)
]
)
assert outfile.exists()
@ -57,7 +57,8 @@ def test_run_eynollah_ocr_directory(
'-o', str(outdir),
],
[
'output filename:'
'Job done in',
'All jobs done in',
]
)
assert len(list(outdir.iterdir())) == 2