Skip to content

Commit

Permalink
rm img path attribs
Browse files Browse the repository at this point in the history
  • Loading branch information
rue-a committed Jan 15, 2024
1 parent 70878ba commit a661e19
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ def test_api(self):
meta.getparent().remove(meta)
# remove img path from Page element

del result_tree.find(
res_img_path_elem = result_tree.find(
".//pc:Page",
namespaces={
"pc": "http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"
},
).attrib["imageFilename"]
del target_tree.find(
)
del res_img_path_elem.attrib["imageFilename"]
tar_img_path_elem = target_tree.find(
".//pc:Page",
namespaces={
"pc": "http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"
},
).attrib["imageFilename"]
)
del tar_img_path_elem.attrib["imageFilename"]
assert ET.tostring(target_tree) == ET.tostring(result_tree)

0 comments on commit a661e19

Please sign in to comment.