Skip to content

Commit 340f513

Browse files
authored
test_recognize.py: use stable API
1 parent 41b0045 commit 340f513

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_recognize.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ def test_recognize(self):
2020
with pushd_popd(tempdir=True) as tempdir:
2121
workspace = resolver.workspace_from_url(assets.path_to('communist_manifesto/data/mets.xml'), dst_dir=tempdir, download=True)
2222
workspace.overwrite_mode = True
23-
proc = KrakenRecognize(
24-
workspace,
25-
input_file_grp="OCR-D-SEG-KRAKEN",
26-
output_file_grp="OCR-D-OCR-KRAKEN",
23+
run_processor(KrakenRecognize,
24+
workspace=workspace,
25+
input_file_grp="OCR-D-SEG-KRAKEN",
26+
output_file_grp="OCR-D-OCR-KRAKEN",
2727
)
28-
proc.process()
2928
workspace.save_mets()
29+
# FIXME: add result assertions (find_files, parsing PAGE etc)
3030

3131
if __name__ == "__main__":
3232
main(__file__)

0 commit comments

Comments
 (0)