mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-11-10 06:34:11 +01:00
make --model-basedir and --model-overrides top-level CLI options
This commit is contained in:
parent
b6f82c72b9
commit
a913bdf7dc
18 changed files with 132 additions and 170 deletions
|
|
@ -1,7 +1,4 @@
|
|||
import pytest
|
||||
from eynollah.cli import (
|
||||
ocr as ocr_cli,
|
||||
)
|
||||
from ocrd_modelfactory import page_from_file
|
||||
from ocrd_models.constants import NAMESPACES as NS
|
||||
|
||||
|
|
@ -26,7 +23,7 @@ def test_run_eynollah_ocr_filename(
|
|||
if "-doit" in options:
|
||||
options.insert(options.index("-doit") + 1, str(outrenderfile.parent))
|
||||
run_eynollah_ok_and_check_logs(
|
||||
ocr_cli,
|
||||
'ocr',
|
||||
[
|
||||
'-i', str(infile),
|
||||
'-dx', str(infile.parent),
|
||||
|
|
@ -53,7 +50,7 @@ def test_run_eynollah_ocr_directory(
|
|||
):
|
||||
outdir = tmp_path
|
||||
run_eynollah_ok_and_check_logs(
|
||||
ocr_cli,
|
||||
'ocr',
|
||||
[
|
||||
'-di', str(resources_dir),
|
||||
'-dx', str(resources_dir),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue