Skip to content

Commit

Permalink
Merge pull request #19 from slub/conf-fract
Browse files Browse the repository at this point in the history
convert confidence percent to fraction
  • Loading branch information
rue-a authored Mar 8, 2024
2 parents 3a68c69 + 2a43650 commit 9d14212
Show file tree
Hide file tree
Showing 6 changed files with 8,524 additions and 8,525 deletions.
5 changes: 4 additions & 1 deletion tests/test_workspace.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from pathlib import Path
from os import chdir
from difflib import unified_diff
from unittest import TestCase, skip, main
from tempfile import NamedTemporaryFile
from ocrd_models.ocrd_page import parseEtree
Expand Down Expand Up @@ -63,4 +64,6 @@ def test_api(self):
},
)
del tar_img_path_elem.attrib["imageFilename"]
assert ET.tostring(target_tree) == ET.tostring(result_tree)
target_xml = ET.tostring(target_tree, pretty_print=True, encoding='UTF-8').decode('utf-8')
result_xml = ET.tostring(result_tree, pretty_print=True, encoding='UTF-8').decode('utf-8')
assert target_xml == result_xml
Loading

0 comments on commit 9d14212

Please sign in to comment.