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
fe72381d
Commit
fe72381d
authored
Nov 20, 2013
by
Mame Coumba Sall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define node_uid for getInventoryList in test_GroupByNode
parent
2363f235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
product/ERP5/tests/testInventoryAPI.py
product/ERP5/tests/testInventoryAPI.py
+3
-1
No files found.
product/ERP5/tests/testInventoryAPI.py
View file @
fe72381d
...
@@ -835,7 +835,9 @@ class TestInventoryList(InventoryAPITestCase):
...
@@ -835,7 +835,9 @@ class TestInventoryList(InventoryAPITestCase):
self
.
_makeMovement
(
quantity
=
100
)
self
.
_makeMovement
(
quantity
=
100
)
self
.
_makeMovement
(
destination_value
=
self
.
other_node
,
source_value
=
self
.
mirror_node
,
quantity
=
100
)
self
.
_makeMovement
(
destination_value
=
self
.
other_node
,
source_value
=
self
.
mirror_node
,
quantity
=
100
)
self
.
_makeMovement
(
destination_value
=
None
,
source_value
=
self
.
mirror_node
,
quantity
=
100
)
self
.
_makeMovement
(
destination_value
=
None
,
source_value
=
self
.
mirror_node
,
quantity
=
100
)
inventory_list
=
getInventoryList
(
section_uid
=
self
.
section
.
getUid
(),
group_by_node
=
1
)
inventory_list
=
getInventoryList
(
node_uid
=
(
self
.
node
.
getUid
(),
self
.
other_node
.
getUid
(),
self
.
mirror_node
.
getUid
()),
group_by_node
=
1
)
self
.
assertEquals
(
3
,
len
(
inventory_list
))
self
.
assertEquals
(
3
,
len
(
inventory_list
))
self
.
assertEquals
([
r
for
r
in
inventory_list
if
r
.
node_relative_url
==
self
.
assertEquals
([
r
for
r
in
inventory_list
if
r
.
node_relative_url
==
self
.
node
.
getRelativeUrl
()][
0
].
inventory
,
100
)
self
.
node
.
getRelativeUrl
()][
0
].
inventory
,
100
)
...
...
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