Closed streino closed 2 weeks ago
@streino Can you write a simple transformation that changes something? It's for the tests, with this change ⬆, noop
won't create or duplicate records.
Will do! And I just remembered you have to explicitly call etree.indent
to format the XML, pretty_print
isn't enough.
So util.xml_to_string
not enough? Works in my tests.
Ah maybe too. I was referring etree.tostring(pretty_print=True)
which clearly isn't enough.
Apply same formatter to original and transform so we can diff cleanly. Maybe even apply sorting xslt (sort all nodes and attributes) ? But we'll have a mismatch between what we diff and what we show to the user (don't want to show the sorted XML), so it might not be such a good idea.