Skip to content

Commit 8f010db

Browse files
NathanielVolfangojenkins
authored andcommitted
QPR-12377 -- Update regression tests and add Restore regression test for testing the specific UseCounterparty CRIF match fields
1 parent 1e4014d commit 8f010db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tools/PythonTools/compare_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import jsondiff
1515
from lxml import etree
1616
from xmldiff import main, formatting
17+
from pathlib import Path
1718

1819

1920
def is_float(num: str):
@@ -567,7 +568,7 @@ def compare_files_xml(name, file_1, file_2):
567568
logger.debug('%s: Comparing file %s against %s using xml diff', name, file_1, file_2)
568569
diff = main.diff_files(file_1, file_2, formatter=formatting.DiffFormatter())
569570
if len(diff) > 0:
570-
logger.warning(diff)
571+
logger.warning(f"XML diff ({name}.{Path(file_1).name}):\n{diff}")
571572
return False
572573
else:
573574
return True

0 commit comments

Comments
 (0)