Skip to content

Commit

Permalink
ci: check if prepending XML declartion fixes DOS pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rien333 committed Dec 12, 2024
1 parent b3fa6b9 commit c04e826
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_mdto_xsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
def test_informatieobject_xml_validity(mdto_xsd):
"""Test if running to_xml() on a informatieobject procudes valid MDTO XML"""
# create a schema object from the MDTO XSD
with open(mdto_xsd, 'rb') as f:
mdto_xsd_str = f.read()

ET.fromstring(b'<?xml version="1.0" encoding="UTF-8"?>\n'+mdto_xsd_str)

mdto_schema = ET.XMLSchema(ET.parse(mdto_xsd))
# create informatieobject
informatieobject = Informatieobject(
Expand Down

0 comments on commit c04e826

Please sign in to comment.