Commit b57f4836 authored by Nicolas Delaby's avatar Nicolas Delaby

Attributes are be ordered to have a expected result (unit test concerns)

parent 18ec8799
......@@ -394,9 +394,9 @@ ERP5Diff Usage and its output example
>>> erp5diff.compare(old_xml, new_xml)
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_a">nnn</xupdate:update>
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_b">nnn</xupdate:update>
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_c">nnn</xupdate:update>
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_a">nnn</xupdate:update>
</xupdate:modifications>
14. Remove one attribute
......@@ -464,9 +464,9 @@ ERP5Diff Usage and its output example
>>> erp5diff.compare(old_xml, new_xml)
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_a"/>
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_b"/>
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_c"/>
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_a"/>
</xupdate:modifications>
17. Append one attribute
......@@ -514,8 +514,8 @@ ERP5Diff Usage and its output example
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:append select="/object[@id='313730']/last_name">
<xupdate:attribute name="attribute_b">bbb</xupdate:attribute>
<xupdate:attribute name="attribute_a">aaa</xupdate:attribute>
<xupdate:attribute name="attribute_b">bbb</xupdate:attribute>
</xupdate:append>
</xupdate:modifications>
......@@ -539,9 +539,9 @@ ERP5Diff Usage and its output example
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:append select="/object[@id='313730']/last_name">
<xupdate:attribute name="attribute_a">aaa</xupdate:attribute>
<xupdate:attribute name="attribute_b">bbb</xupdate:attribute>
<xupdate:attribute name="attribute_c">ccc</xupdate:attribute>
<xupdate:attribute name="attribute_a">aaa</xupdate:attribute>
</xupdate:append>
</xupdate:modifications>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment