1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-09 11:50:00 +02:00

✔️ dinglehopper: Add missing integration test markers

This commit is contained in:
Gerber, Mike 2020-11-12 19:10:23 +01:00
parent c48d7646df
commit 132f91d500
2 changed files with 3 additions and 0 deletions

View file

@ -6,6 +6,7 @@ from .util import working_directory
from ..cli import process from ..cli import process
@pytest.mark.integration
def test_cli_json(tmp_path): def test_cli_json(tmp_path):
"""Test that the cli/process() yields a loadable JSON report""" """Test that the cli/process() yields a loadable JSON report"""
@ -25,6 +26,7 @@ def test_cli_json(tmp_path):
assert j["cer"] == pytest.approx(0.2) assert j["cer"] == pytest.approx(0.2)
@pytest.mark.integration
def test_cli_json_cer_is_infinity(tmp_path): def test_cli_json_cer_is_infinity(tmp_path):
"""Test that the cli/process() yields a loadable JSON report when CER == inf""" """Test that the cli/process() yields a loadable JSON report when CER == inf"""

View file

@ -14,6 +14,7 @@ from ..ocrd_cli import ocrd_dinglehopper
data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
@pytest.mark.integration
@pytest.mark.skipif(sys.platform == 'win32', reason="only on unix") @pytest.mark.skipif(sys.platform == 'win32', reason="only on unix")
def test_ocrd_cli(tmp_path): def test_ocrd_cli(tmp_path):
"""Test OCR-D interface""" """Test OCR-D interface"""