Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Binh
erp5
Commits
acd9b497
Commit
acd9b497
authored
13 years ago
by
Arnaud Fontaine
Browse files
Options
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
...
...
This diff is collapsed.
Click to expand it.
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