make --model-basedir and --model-overrides top-level CLI options

This commit is contained in:
kba 2025-10-29 18:24:17 +01:00
parent b6f82c72b9
commit a913bdf7dc
18 changed files with 132 additions and 170 deletions

View file

@ -1,10 +1,5 @@
import pytest
from PIL import Image
from eynollah.cli import (
binarization as binarization_cli,
)
from ocrd_modelfactory import page_from_file
from ocrd_models.constants import NAMESPACES as NS
@pytest.mark.parametrize(
"options",
@ -21,7 +16,7 @@ def test_run_eynollah_binarization_filename(
infile = tests_dir.joinpath('resources/kant_aufklaerung_1784_0020.tif')
outfile = tmp_path.joinpath('kant_aufklaerung_1784_0020.png')
run_eynollah_ok_and_check_logs(
binarization_cli,
'binarization',
[
'-i', str(infile),
'-o', str(outfile),
@ -45,7 +40,7 @@ def test_run_eynollah_binarization_directory(
):
outdir = tmp_path
run_eynollah_ok_and_check_logs(
binarization_cli,
'binarization',
[
'-di', str(resources_dir),
'-o', str(outdir),