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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
erp5
Commits
50c6596c
Commit
50c6596c
authored
Dec 11, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Followup of
acd9b497
for legacy Simulation.
parent
fed459cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
product/ERP5Legacy/tests/testLegacySimulationPackingList.py
product/ERP5Legacy/tests/testLegacySimulationPackingList.py
+12
-4
No files found.
product/ERP5Legacy/tests/testLegacySimulationPackingList.py
View file @
50c6596c
...
@@ -1729,6 +1729,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
...
@@ -1729,6 +1729,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
portal_type
=
self
.
packing_list_line_portal_type
,
portal_type
=
self
.
packing_list_line_portal_type
,
reference
=
'bbb'
,
reference
=
'bbb'
,
int_index
=
1
)
int_index
=
1
)
line_bbb_cell_bbb
=
line_bbb
.
newContent
(
portal_type
=
self
.
packing_list_cell_portal_type
,
reference
=
'bbb'
,
int_index
=
2
)
line_bbb_cell_aaa
=
line_bbb
.
newContent
(
portal_type
=
self
.
packing_list_cell_portal_type
,
reference
=
'aaa'
,
int_index
=
1
)
line_aaa
=
packing_list
.
newContent
(
line_aaa
=
packing_list
.
newContent
(
portal_type
=
self
.
packing_list_line_portal_type
,
portal_type
=
self
.
packing_list_line_portal_type
,
reference
=
'aaa'
,
reference
=
'aaa'
,
...
@@ -1746,14 +1754,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
...
@@ -1746,14 +1754,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
# check it's possible to sort by reference
# check it's possible to sort by reference
reference_result
=
packing_list
.
getMovementList
(
sort_on
=
reference_result
=
packing_list
.
getMovementList
(
sort_on
=
[(
'reference'
,
'descending'
)])
[(
'reference'
,
'descending'
)])
self
.
assertEquals
(
reference_result
,
[
line_
aaa
,
line_bbb
,
line_ccc
,
self
.
assertEquals
(
reference_result
,
[
line_
ddd
,
line_ccc
,
line_
ddd
])
line_
bbb_cell_bbb
,
line_bbb_cell_aaa
,
line_aaa
])
# check it's possible to sort by int_index
# check it's possible to sort by int_index
int_index_result
=
packing_list
.
getMovementList
(
sort_on
=
int_index_result
=
packing_list
.
getMovementList
(
sort_on
=
[(
'int_index'
,
'ascending'
)])
[(
'int_index'
,
'ascending'
)])
self
.
assertEquals
(
int_index_result
,
[
line_
ccc
,
line_ddd
,
line_aaa
,
self
.
assertEquals
(
int_index_result
,
[
line_
bbb_cell_aaa
,
line_bbb_cell_bbb
,
line_
bbb
])
line_
aaa
,
line_ddd
,
line_ccc
])
def
test_subcontent_reindexing_container_line_cell
(
self
):
def
test_subcontent_reindexing_container_line_cell
(
self
):
"""Tests, that indexation of Packing List are propagated to subobjects
"""Tests, that indexation of Packing List are propagated to subobjects
...
...
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