Remove broken __main__ handling (stick to pytest)

fix/readme-no-checkpoint
Gerber, Mike 5 years ago
parent e1b9d381a0
commit 5273247ab3

@ -2,7 +2,6 @@
import os import os
import sys import sys
from unittest import TestCase, skip, main # pylint: disable=unused-import
from test.assets import assets from test.assets import assets

@ -7,7 +7,7 @@ import pytest
from ocrd.resolver import Resolver from ocrd.resolver import Resolver
from ocrd_calamari import CalamariRecognize from ocrd_calamari import CalamariRecognize
from test.base import main, assets from .base import assets
METS_KANT = assets.url_of('kant_aufklaerung_1784-page-block-line-word_glyph/data/mets.xml') METS_KANT = assets.url_of('kant_aufklaerung_1784-page-block-line-word_glyph/data/mets.xml')
WORKSPACE_DIR = '/tmp/test-ocrd-calamari' WORKSPACE_DIR = '/tmp/test-ocrd-calamari'
@ -62,7 +62,3 @@ def test_recognize(workspace):
assert os.path.exists(page1) assert os.path.exists(page1)
with open(page1, 'r', encoding='utf-8') as f: with open(page1, 'r', encoding='utf-8') as f:
assert 'verſchuldeten' in f.read() assert 'verſchuldeten' in f.read()
if __name__ == '__main__':
main()

Loading…
Cancel
Save