diff --git a/test/base.py b/test/base.py index cea8ed3..79b0d1a 100644 --- a/test/base.py +++ b/test/base.py @@ -2,7 +2,6 @@ import os import sys -from unittest import TestCase, skip, main # pylint: disable=unused-import from test.assets import assets diff --git a/test/test_recognize.py b/test/test_recognize.py index 3fc1458..0fca48f 100644 --- a/test/test_recognize.py +++ b/test/test_recognize.py @@ -7,7 +7,7 @@ import pytest from ocrd.resolver import Resolver 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') WORKSPACE_DIR = '/tmp/test-ocrd-calamari' @@ -62,7 +62,3 @@ def test_recognize(workspace): assert os.path.exists(page1) with open(page1, 'r', encoding='utf-8') as f: assert 'verſchuldeten' in f.read() - - -if __name__ == '__main__': - main()