1
0
Fork 0
mirror of https://github.com/mikegerber/ocrd_calamari.git synced 2025-06-18 16:19:54 +02:00

Merge pull request #74 from bertsky/fix-tests-again

test: workaround for core#809
This commit is contained in:
Mike Gerber 2022-02-24 15:30:53 +01:00 committed by GitHub
commit 85f5b685eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,12 @@ def workspace():
os.makedirs(WORKSPACE_DIR)
resolver = Resolver()
workspace = resolver.workspace_from_url(METS_KANT, dst_dir=WORKSPACE_DIR)
# due to core#809 this does not always work:
#workspace = resolver.workspace_from_url(METS_KANT, dst_dir=WORKSPACE_DIR)
# workaround:
shutil.rmtree(WORKSPACE_DIR)
shutil.copytree(os.path.dirname(METS_KANT), WORKSPACE_DIR)
workspace = resolver.workspace_from_url(os.path.join(WORKSPACE_DIR, 'mets.xml'))
# The binarization options I have are:
#