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): ...@@ -2275,18 +2275,17 @@ class TestInventoryDocument(InventoryAPITestCase):
# the brain is not a zsqlbrain instance here, so it does not # the brain is not a zsqlbrain instance here, so it does not
# have getPath(). # have getPath().
return [x.path for x in resource.getCurrentInventoryList(**kw)] return [x.path for x in resource.getCurrentInventoryList(**kw)]
# use optimisation # use optimisation
self.assertTrue(movement.getPath() in getCurrentInventoryPathList( self.assertEquals(True,movement.getPath() in
self.resource, [x.path for x in self.resource.getInventoryList(
node_uid=self.node_uid, mirror_uid=self.mirror_node.getUid())])
from_date=movement.getStartDate()))
# without optimisation # without optimisation
self.assertTrue(movement.getPath() in getCurrentInventoryPathList( self.assertEquals(True,movement.getPath() in
self.resource, [x.path for x in self.resource.getInventoryList(
optimisation__=False, optimisation__=False,
from_date=movement.getStartDate())) mirror_uid=self.mirror_node.getUid())])
class TestUnitConversion(InventoryAPITestCase): class TestUnitConversion(InventoryAPITestCase):
QUANTITY_UNIT_CATEGORIES = { 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