Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
erp5
Commits
4cee4a56
Commit
4cee4a56
authored
Feb 16, 2015
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mrp: supply chains does not exist any longer
parent
078f44f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
product/ERP5/tests/testProductionOrderApparel.py
product/ERP5/tests/testProductionOrderApparel.py
+0
-57
No files found.
product/ERP5/tests/testProductionOrderApparel.py
View file @
4cee4a56
...
...
@@ -1206,23 +1206,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list
.
play
(
self
)
def
test_50_testCopyPaste
(
self
,
quiet
=
0
,
run
=
run_all_test
):
"""
Check that relation are changed when doing a copy/paste,
on supply chain
"""
if
not
run
:
return
sequence_list
=
SequenceList
()
sequence_string
=
'
\
CreateProductionOrganisation1
\
CreateProductionSC
\
CopyPasteSupplyChain
\
Tic
\
CheckPastedSupplyChain
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepCreateEmptySC
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""
Create a empty Supply Chain
...
...
@@ -1262,46 +1245,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
self
.
assertEqual
(
supply_node
.
getRelativeUrl
(),
supply_link
.
getDestination
())
def
test_51_testCutPasteInAnotherContainer
(
self
,
quiet
=
0
,
run
=
run_all_test
):
"""
Check that relations are changed when doing a copy/paste,
on a supply chain.
The point in this test is that internal relations should be updated
when copying an object. Suppose that a document D1 contains sub-objects
S1_1 and S1_2, and S1_1 is related to S1_2. When copying D1 to D2,
S2_1 and S2_2 are also copied from S1_1 and S1_2. Now S2_1 should be
related to S2_2, instead of S1_2.
Good:
D1 -+- S1_1 D1 -+- S1_1 D2 -+- S2_1
| | => | | | |
| v | v | v
+- S1_2 +- S1_2 +- S2_2
Bad:
D1 -+- S1_1 D1 -+- S1_1 D2 -+- S2_1
| | => | | __|_/
| v | v / |
+- S1_2 +- S1_2<--/ +- S2_2
"""
if
not
run
:
return
sequence_list
=
SequenceList
()
sequence_string
=
'
\
CreateProductionOrganisation1
\
CreateProductionSC
\
CreateEmptySC
\
Tic
\
CutPasteSupplyNodeInAnotherContainer
\
Tic
\
CheckPastedSupplyNode
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestProductionOrderApparel
))
...
...
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