Skip to content

Commit

Permalink
tests: base→conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Aug 29, 2024
1 parent 6d287b0 commit 316eedb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
3 changes: 2 additions & 1 deletion tests/base.py → tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ocrd import Resolver, Workspace, OcrdMetsServer
from ocrd_utils import pushd_popd, disableLogging, initLogging, setOverrideLogLevel, config

from tests.assets import assets
from .assets import assets

@pytest.fixture
def workspace(tmpdir, pytestconfig):
Expand All @@ -34,3 +34,4 @@ def workspace_aufklaerung_region(workspace):
@pytest.fixture
def workspace_sbb(workspace):
yield from workspace(assets.url_of('SBB0000F29300010000/data/mets_one_file.xml'))

2 changes: 1 addition & 1 deletion tests/test_binarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json

from tests.base import *
from .assets import assets

from ocrd import run_processor
from ocrd_kraken.binarize import KrakenBinarize
Expand Down
5 changes: 0 additions & 5 deletions tests/test_recognize.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# pylint: disable=import-error

from tests.base import *

from ocrd import run_processor
from ocrd_kraken.recognize import KrakenRecognize

def test_recognize(workspace_manifesto):
ws = workspace_manifesto
print(ws)
print(type(ws))
print(ws.directory)
run_processor(KrakenRecognize,
workspace=ws,
input_file_grp="OCR-D-SEG-KRAKEN",
Expand Down
2 changes: 0 additions & 2 deletions tests/test_segment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# pylint: disable=import-error

from tests.base import *

from ocrd import run_processor
from ocrd_kraken.segment import KrakenSegment

Expand Down

0 comments on commit 316eedb

Please sign in to comment.