Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5diff
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
erp5diff
Commits
bf3d3747
Commit
bf3d3747
authored
Dec 16, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated test.
parent
be253d62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
53 deletions
+5
-53
src/tests/erp5diff_test_suite.py
src/tests/erp5diff_test_suite.py
+5
-53
No files found.
src/tests/erp5diff_test_suite.py
View file @
bf3d3747
...
@@ -641,60 +641,12 @@ class TestERP5Diff(unittest.TestCase):
...
@@ -641,60 +641,12 @@ class TestERP5Diff(unittest.TestCase):
<xupdate:remove select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][4]"/>
<xupdate:remove select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][4]"/>
<xupdate:remove select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][8]"/>
<xupdate:remove select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][8]"/>
</xupdate:modifications>
</xupdate:modifications>
"""
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
def
test_remove_element_with_same_id_bis
(
self
):
"""21. Modify two elements that have same id
"""
old_xml
=
"""
<erp5>
<object portal_type="Person" id="313730">
<workflow_action id="edit_workflow">
<time type="date">2009/08/28 19:12:34.424 GMT+9</time>
</workflow_action>
<workflow_action id="edit_workflow">
<time type="date">2009/08/28 19:12:34.432 GMT+9</time>
</workflow_action>
<workflow_action id="edit_workflow">
<time type="date">2009/08/28 19:12:34.434 GMT+9</time>
</workflow_action>
<workflow_action id="edit_workflow">
<time type="date">2009/08/28 19:12:34.436 GMT+9</time>
</workflow_action>
</object>
</erp5>
"""
new_xml
=
"""
<erp5>
<object portal_type="Person" id="313730">
<workflow_action id="edit_workflow">
<time type="date">2009/08/28 19:12:34.424 GMT+9</time>
</workflow_action>
<workflow_action id="edit_workflow">
<time type="date">2009/08/29 19:12:34.432 GMT+9</time>
</workflow_action>
<workflow_action id="edit_workflow">
<time type="date">2009/08/30 19:12:34.434 GMT+9</time>
</workflow_action>
<workflow_action id="edit_workflow">
<time type="date">2009/08/31 19:12:34.436 GMT+9</time>
</workflow_action>
</object>
</erp5>
"""
expected_result_string
=
"""<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:update select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][2]/time">2009/08/29 19:12:34.432 GMT+9</xupdate:update>
<xupdate:update select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][3]/time">2009/08/30 19:12:34.434 GMT+9</xupdate:update>
<xupdate:update select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][4]/time">2009/08/31 19:12:34.436 GMT+9</xupdate:update>
</xupdate:modifications>
"""
"""
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
def
test_modify_attributes_of_sequential_objects
(
self
):
def
test_modify_attributes_of_sequential_objects
(
self
):
"""2
2
. Modify attributes of sequencial objects
"""2
1
. Modify attributes of sequencial objects
"""
"""
old_xml
=
"""
old_xml
=
"""
...
@@ -732,7 +684,7 @@ class TestERP5Diff(unittest.TestCase):
...
@@ -732,7 +684,7 @@ class TestERP5Diff(unittest.TestCase):
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
def
test_nodes_with_qnames
(
self
):
def
test_nodes_with_qnames
(
self
):
"""2
3
. Modify nodes with Qualified Names
"""2
2
. Modify nodes with Qualified Names
ERP5Diff should create xpath valid expression with correct prefix
ERP5Diff should create xpath valid expression with correct prefix
"""
"""
old_xml
=
"""
old_xml
=
"""
...
@@ -792,7 +744,7 @@ class TestERP5Diff(unittest.TestCase):
...
@@ -792,7 +744,7 @@ class TestERP5Diff(unittest.TestCase):
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
def
test_attibutes_with_qnames
(
self
):
def
test_attibutes_with_qnames
(
self
):
"""2
4
. Modify nodes with Qualified Names
"""2
3
. Modify nodes with Qualified Names
Works on Attributes specially
Works on Attributes specially
"""
"""
...
@@ -818,7 +770,7 @@ class TestERP5Diff(unittest.TestCase):
...
@@ -818,7 +770,7 @@ class TestERP5Diff(unittest.TestCase):
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
def
test_attibutes_with_qnames_at_root_level
(
self
):
def
test_attibutes_with_qnames_at_root_level
(
self
):
"""2
5
. Modify nodes with Qualified Names at root level
"""2
4
. Modify nodes with Qualified Names at root level
Work on Attributes specially
Work on Attributes specially
"""
"""
old_xml
=
"""
old_xml
=
"""
...
@@ -845,7 +797,7 @@ class TestERP5Diff(unittest.TestCase):
...
@@ -845,7 +797,7 @@ class TestERP5Diff(unittest.TestCase):
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
self
.
_assertERP5DiffWorks
(
old_xml
,
new_xml
,
expected_result_string
)
def
test_reoder_nodes_to_the_end
(
self
):
def
test_reoder_nodes_to_the_end
(
self
):
"""2
6
. Reorder some nodes to the end of list
"""2
5
. Reorder some nodes to the end of list
"""
"""
old_xml
=
"""
old_xml
=
"""
<ul>
<ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment