mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 19:59:53 +02:00
✅ Remove broken __main__ handling (stick to pytest)
This commit is contained in:
parent
e1b9d381a0
commit
5273247ab3
2 changed files with 1 additions and 6 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
from unittest import TestCase, skip, main # pylint: disable=unused-import
|
||||
|
||||
from test.assets import assets
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue