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 (
|
||||
layout as layout_cli,
|
||||
)
|
||||
from ocrd_modelfactory import page_from_file
|
||||
from ocrd_models.constants import NAMESPACES as NS
|
||||
|
||||
|
|
@ -30,11 +27,10 @@ def test_run_eynollah_layout_filename(
|
|||
resources_dir,
|
||||
options,
|
||||
):
|
||||
outdir = tmp_path
|
||||
infile = resources_dir / 'kant_aufklaerung_1784_0020.tif'
|
||||
outfile = tmp_path / 'kant_aufklaerung_1784_0020.xml'
|
||||
run_eynollah_ok_and_check_logs(
|
||||
layout_cli,
|
||||
'layout',
|
||||
[
|
||||
'-i', str(infile),
|
||||
'-o', str(outfile.parent),
|
||||
|
|
@ -68,7 +64,7 @@ def test_run_eynollah_layout_filename2(
|
|||
infile = resources_dir / 'euler_rechenkunst01_1738_0025.tif'
|
||||
outfile = tmp_path / 'euler_rechenkunst01_1738_0025.xml'
|
||||
run_eynollah_ok_and_check_logs(
|
||||
layout_cli,
|
||||
'layout',
|
||||
[
|
||||
'-i', str(infile),
|
||||
'-o', str(outfile.parent),
|
||||
|
|
@ -96,7 +92,7 @@ def test_run_eynollah_layout_directory(
|
|||
):
|
||||
outdir = tmp_path
|
||||
run_eynollah_ok_and_check_logs(
|
||||
layout_cli,
|
||||
'layout',
|
||||
[
|
||||
'-di', str(resources_dir),
|
||||
'-o', str(outdir),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue