remove xml_compare
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user