Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Staar <[email protected]>
  • Loading branch information
PeterStaar-IBM committed Sep 9, 2024
1 parent 274a549 commit 788ab45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ def test_document_md_export():

md = doc.export_to_markdown()

"""
with open("test/data/doc/md-export.md", "w") as gold_obj:
gold_obj.write(md)
"""

with open("test/data/doc/md-export.md") as gold_obj:
gold_data = gold_obj.read().strip()
Expand All @@ -72,8 +74,10 @@ def test_document_xml_export():
doc = Document.model_validate_json(src_data)
xml = doc.export_to_xml(add_new_line=True)

"""
with open("test/data/doc/md-export.xml", "w") as gold_obj:
gold_obj.write(xml)
"""

with open("test/data/doc/md-export.xml", "r") as gold_obj:
gold_data = gold_obj.read().strip()
Expand Down

0 comments on commit 788ab45

Please sign in to comment.