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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
0d3632e0
Commit
0d3632e0
authored
Dec 10, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend test_PackingList_getMovementListSorting to check for cells sorting too.
parent
acd9b497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
product/ERP5/tests/testPackingList.py
product/ERP5/tests/testPackingList.py
+12
-4
No files found.
product/ERP5/tests/testPackingList.py
View file @
0d3632e0
...
...
@@ -1727,6 +1727,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
portal_type
=
self
.
packing_list_line_portal_type
,
reference
=
'bbb'
,
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
(
portal_type
=
self
.
packing_list_line_portal_type
,
reference
=
'aaa'
,
...
...
@@ -1744,14 +1752,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
# check it's possible to sort by reference
reference_result
=
packing_list
.
getMovementList
(
sort_on
=
[(
'reference'
,
'descending'
)])
self
.
assertEquals
(
reference_result
,
[
line_ddd
,
line_ccc
,
line_bbb
,
line_aaa
])
self
.
assertEquals
(
reference_result
,
[
line_ddd
,
line_ccc
,
line_
bbb_cell_bbb
,
line_bbb_cell_aaa
,
line_
aaa
])
# check it's possible to sort by int_index
int_index_result
=
packing_list
.
getMovementList
(
sort_on
=
[(
'int_index'
,
'ascending'
)])
self
.
assertEquals
(
int_index_result
,
[
line_bbb
,
line_aaa
,
line_ddd
,
line_ccc
])
self
.
assertEquals
(
int_index_result
,
[
line_bbb
_cell_aaa
,
line_bbb_cell_bbb
,
line_
aaa
,
line_ddd
,
line_
ccc
])
def
test_subcontent_reindexing_container_line_cell
(
self
):
"""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