|
|
@ -34,9 +34,9 @@ def test_ocrd_cli(tmp_path):
|
|
|
|
"-O",
|
|
|
|
"-O",
|
|
|
|
"OCR-D-OCR-CALAMARI-EVAL",
|
|
|
|
"OCR-D-OCR-CALAMARI-EVAL",
|
|
|
|
]
|
|
|
|
]
|
|
|
|
sys.argv[
|
|
|
|
sys.argv[1:] = (
|
|
|
|
1:
|
|
|
|
args # XXX Hack to satisfy ocrd_cli_wrap_processor() check for arguments
|
|
|
|
] = args # XXX Hack to satisfy ocrd_cli_wrap_processor() check for arguments
|
|
|
|
)
|
|
|
|
result = runner.invoke(ocrd_dinglehopper, args)
|
|
|
|
result = runner.invoke(ocrd_dinglehopper, args)
|
|
|
|
assert result.exit_code == 0
|
|
|
|
assert result.exit_code == 0
|
|
|
|
result_json = list((test_workspace_dir / "OCR-D-OCR-CALAMARI-EVAL").glob("*.json"))
|
|
|
|
result_json = list((test_workspace_dir / "OCR-D-OCR-CALAMARI-EVAL").glob("*.json"))
|
|
|
|