remove xml_compare

This commit is contained in:
2020-12-22 17:25:13 +01:00
parent 7d42517430
commit 80b7f1b083
2 changed files with 0 additions and 179 deletions

View File

@ -6,7 +6,6 @@ from os import listdir
from json import load
from rougail import objspace, annotator
from rougail.xml_compare import xml_compare
from rougail.error import DictConsistencyError
from rougail.config import Config
@ -53,23 +52,6 @@ def test_dir_error(request):
return request.param
def compare_xml(exported_xmlfile, expected_xmlfile):
exported_document = etree.parse(exported_xmlfile).getroot()
expected_document = etree.parse(expected_xmlfile).getroot()
try:
assert xml_compare(exported_document, expected_document)
except AssertionError as err:
print()
print('Le dictionnaire exporte :')
print()
print(etree.tostring(exported_document, pretty_print=True, encoding="UTF-8").decode())
print()
print('Le dictionnaire attendu :')
print()
print(etree.tostring(expected_document, pretty_print=True, encoding="UTF-8").decode())
raise err
def launch_flattener(test_dir, test_ok=False):
eolobj = objspace.CreoleObjSpace(Config['dtdfilename'])
dirs = [test_dir]