From 5273247ab3060c8d70ac78294a50101d311c84b1 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 5 Dec 2019 13:47:31 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Remove=20broken=20=5F=5Fmain=5F=5F?= =?UTF-8?q?=20handling=20(stick=20to=20pytest)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/base.py | 1 - test/test_recognize.py | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) 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()