Commit 9cc88da0 authored by Mame Coumba Sall's avatar Mame Coumba Sall

Modified to test inventory if movement is added in the future


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30328 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aa5fba77
......@@ -2275,18 +2275,17 @@ class TestInventoryDocument(InventoryAPITestCase):
# the brain is not a zsqlbrain instance here, so it does not
# have getPath().
return [x.path for x in resource.getCurrentInventoryList(**kw)]
# use optimisation
self.assertTrue(movement.getPath() in getCurrentInventoryPathList(
self.resource,
node_uid=self.node_uid,
from_date=movement.getStartDate()))
self.assertEquals(True,movement.getPath() in
[x.path for x in self.resource.getInventoryList(
mirror_uid=self.mirror_node.getUid())])
# without optimisation
self.assertTrue(movement.getPath() in getCurrentInventoryPathList(
self.resource,
optimisation__=False,
from_date=movement.getStartDate()))
self.assertEquals(True,movement.getPath() in
[x.path for x in self.resource.getInventoryList(
optimisation__=False,
mirror_uid=self.mirror_node.getUid())])
class TestUnitConversion(InventoryAPITestCase):
QUANTITY_UNIT_CATEGORIES = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment