mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-09 20:00:01 +02:00
🧹 dinglehopper: Move Python 3.5 XXXs to a GitHub issue
See https://github.com/qurator-spk/dinglehopper/issues/20.
This commit is contained in:
parent
4b86f01b15
commit
e1c8546336
3 changed files with 0 additions and 5 deletions
|
@ -16,7 +16,6 @@ import unicodedata
|
||||||
class ExtractedText:
|
class ExtractedText:
|
||||||
segments = attr.ib()
|
segments = attr.ib()
|
||||||
joiner = attr.ib(type=str)
|
joiner = attr.ib(type=str)
|
||||||
# TODO Use type annotations for attr.ib types when support for Python 3.5 is dropped
|
|
||||||
# TODO Types are not validated (attr does not do this yet)
|
# TODO Types are not validated (attr does not do this yet)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -10,7 +10,6 @@ from ..cli import process
|
||||||
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"""
|
||||||
|
|
||||||
# XXX Path.__str__() is necessary for Python 3.5
|
|
||||||
with working_directory(str(tmp_path)):
|
with working_directory(str(tmp_path)):
|
||||||
with open('gt.txt', 'w') as gtf:
|
with open('gt.txt', 'w') as gtf:
|
||||||
gtf.write('AAAAA')
|
gtf.write('AAAAA')
|
||||||
|
@ -26,7 +25,6 @@ def test_cli_json(tmp_path):
|
||||||
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"""
|
||||||
|
|
||||||
# XXX Path.__str__() is necessary for Python 3.5
|
|
||||||
with working_directory(str(tmp_path)):
|
with working_directory(str(tmp_path)):
|
||||||
with open('gt.txt', 'w') as gtf:
|
with open('gt.txt', 'w') as gtf:
|
||||||
gtf.write('') # Empty to yield CER == inf
|
gtf.write('') # Empty to yield CER == inf
|
||||||
|
|
|
@ -17,8 +17,6 @@ data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
|
||||||
def test_ocrd_cli(tmp_path):
|
def test_ocrd_cli(tmp_path):
|
||||||
"""Test OCR-D interface"""
|
"""Test OCR-D interface"""
|
||||||
|
|
||||||
# XXX Path.str() is necessary for Python 3.5
|
|
||||||
|
|
||||||
# Copy test workspace
|
# Copy test workspace
|
||||||
test_workspace_dir_source = Path(data_dir) / 'actevedef_718448162'
|
test_workspace_dir_source = Path(data_dir) / 'actevedef_718448162'
|
||||||
test_workspace_dir = tmp_path / 'test_ocrd_cli'
|
test_workspace_dir = tmp_path / 'test_ocrd_cli'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue