XML2Console now CHK to simply check two xml side to side

This commit is contained in:
2020-01-05 09:54:38 +01:00
parent b5e77d3996
commit 8820b5700f
2 changed files with 18 additions and 1 deletions

View File

@@ -1,2 +1,19 @@
from export import export_to_xml
from browser import window
def clean_label(label):
return label.replace("-- ", "")
def check_export(model):
exported_string = export_to_xml(model)
model.import_xml(exported_string)
exported_string_2 = export_to_xml(model)
if exported_string == exported_string_2:
window.console.log("OK")
else:
window.console.log("NOT OK!")
window.console.log(exported_string)
window.console.log(exported_string_2)