diff --git a/tests/test_recognize.py b/tests/test_recognize.py index 0ae2850..1d5f924 100644 --- a/tests/test_recognize.py +++ b/tests/test_recognize.py @@ -20,13 +20,13 @@ def test_recognize(self): with pushd_popd(tempdir=True) as tempdir: workspace = resolver.workspace_from_url(assets.path_to('communist_manifesto/data/mets.xml'), dst_dir=tempdir, download=True) workspace.overwrite_mode = True - proc = KrakenRecognize( - workspace, - input_file_grp="OCR-D-SEG-KRAKEN", - output_file_grp="OCR-D-OCR-KRAKEN", + run_processor(KrakenRecognize, + workspace=workspace, + input_file_grp="OCR-D-SEG-KRAKEN", + output_file_grp="OCR-D-OCR-KRAKEN", ) - proc.process() workspace.save_mets() + # FIXME: add result assertions (find_files, parsing PAGE etc) if __name__ == "__main__": main(__file__)