Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
acd9b497
Commit
acd9b497
authored
Dec 10, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_PackingList_getMovementListSorting reversed ascending/descending.
parent
c13e7a78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5/tests/testPackingList.py
product/ERP5/tests/testPackingList.py
+4
-4
No files found.
product/ERP5/tests/testPackingList.py
View file @
acd9b497
...
@@ -1744,14 +1744,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
...
@@ -1744,14 +1744,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_bbb
,
line_
ddd
])
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
,
line_aaa
,
line_ddd
,
line_
bbb
])
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