Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
erp5
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) :
# check it's possible to sort by reference
reference_result
=
packing_list
.
getMovementList
(
sort_on
=
[(
'reference'
,
'descending'
)])
self
.
assertEquals
(
reference_result
,
[
line_
aaa
,
line_bbb
,
line_ccc
,
line_
ddd
])
self
.
assertEquals
(
reference_result
,
[
line_
ddd
,
line_ccc
,
line_bbb
,
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_
ccc
,
line_ddd
,
line_aaa
,
line_
bbb
])
self
.
assertEquals
(
int_index_result
,
[
line_
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