Debian Codegraph @

debian/patches/No-validation-in-tests.patch

raw symbols SCIP
1 From: Bastian Germann <[email protected]>
2 Date: Sat, 3 Jun 2023 15:58:36 +0200
3 Forwarded: not-needed
4 Subject: No validation in tests
5
6 ---
7 tests/utils.py | 5 +----
8 1 file changed, 1 insertion(+), 4 deletions(-)
9
10 diff --git a/tests/utils.py b/tests/utils.py
11 index b2a4688..3e73d36 100644
12 --- a/tests/utils.py
13 +++ b/tests/utils.py
14 @@ -7,10 +7,7 @@ from sepaxml import validation
15
16
17 def validate_xml(xmlout, schema):
18 - with open(os.path.join(os.path.dirname(validation.__file__), 'schemas', schema + '.xsd'), 'rb') as schema_file:
19 - schema_xml = schema_file.read()
20 - schema_root = etree.XML(schema_xml)
21 - schema = etree.XMLSchema(schema_root)
22 + schema = None
23 parser = etree.XMLParser(schema=schema)
24 xml_root = etree.fromstring(xmlout, parser)
25 return etree.tostring(xml_root, pretty_print=True)