Commit 646b2eaf authored by Mame Coumba Sall's avatar Mame Coumba Sall

Remove wrong parameter that was passed during last commit


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29896 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97eaaa46
...@@ -1933,8 +1933,8 @@ class TestInventoryDocument(InventoryAPITestCase): ...@@ -1933,8 +1933,8 @@ class TestInventoryDocument(InventoryAPITestCase):
def test_01_CurrentInventoryWithFullInventory(self): def test_01_CurrentInventoryWithFullInventory(self):
""" """
#Check that inventory optimisation is executed when querying current Check that inventory optimisation is executed when querying current
#amount (there is a usable full inventory which is the latest). amount (there is a usable full inventory which is the latest).
""" """
self.getInventoryEquals(value=self.INVENTORY_QUANTITY_3 + \ self.getInventoryEquals(value=self.INVENTORY_QUANTITY_3 + \
self.BASE_QUANTITY, self.BASE_QUANTITY,
...@@ -1942,8 +1942,8 @@ class TestInventoryDocument(InventoryAPITestCase): ...@@ -1942,8 +1942,8 @@ class TestInventoryDocument(InventoryAPITestCase):
def test_02_InventoryAtLatestFullInventoryDate(self): def test_02_InventoryAtLatestFullInventoryDate(self):
""" """
#Check that inventory optimisation is executed when querying an amount Check that inventory optimisation is executed when querying an amount
#at the exact time of latest usable full inventory. at the exact time of latest usable full inventory.
""" """
self.getInventoryEquals(value=self.INVENTORY_QUANTITY_3, self.getInventoryEquals(value=self.INVENTORY_QUANTITY_3,
inventory_kw={'node_uid': self.node_uid, inventory_kw={'node_uid': self.node_uid,
...@@ -1951,8 +1951,8 @@ class TestInventoryDocument(InventoryAPITestCase): ...@@ -1951,8 +1951,8 @@ class TestInventoryDocument(InventoryAPITestCase):
def test_03_InventoryAtEarlierFullInventoryDate(self): def test_03_InventoryAtEarlierFullInventoryDate(self):
""" """
#Check that inventory optimisation is executed when querying past Check that inventory optimisation is executed when querying past
#amount (there is a usable full inventory which is not the latest). amount (there is a usable full inventory which is not the latest).
""" """
self.getInventoryEquals(value=self.INVENTORY_QUANTITY_2 + \ self.getInventoryEquals(value=self.INVENTORY_QUANTITY_2 + \
self.BASE_QUANTITY, self.BASE_QUANTITY,
...@@ -1962,12 +1962,12 @@ class TestInventoryDocument(InventoryAPITestCase): ...@@ -1962,12 +1962,12 @@ class TestInventoryDocument(InventoryAPITestCase):
def test_04_InventoryBeforeFullInventoryAfterPartialInventory(self): def test_04_InventoryBeforeFullInventoryAfterPartialInventory(self):
""" """
#Check that optimisation is not executed when querying past amount Check that optimisation is not executed when querying past amount
#with no usable full inventory. with no usable full inventory.
#If optimisation was executed, If optimisation was executed,
# self.INVENTORY_QUANTITY_1 * 2 + self.BASE_QUANTITY * 2 self.INVENTORY_QUANTITY_1 * 2 + self.BASE_QUANTITY * 2
#would be found. would be found.
""" """
self.assertEquals(self.ACTUAL_INVENTORY_QUANTITY_1 + \ self.assertEquals(self.ACTUAL_INVENTORY_QUANTITY_1 + \
self.BASE_QUANTITY * 2, self.BASE_QUANTITY * 2,
...@@ -1976,8 +1976,8 @@ class TestInventoryDocument(InventoryAPITestCase): ...@@ -1976,8 +1976,8 @@ class TestInventoryDocument(InventoryAPITestCase):
def test_05_InventoryListWithFullInventory(self): def test_05_InventoryListWithFullInventory(self):
""" """
#Check that inventory optimisation is executed when querying current Check that inventory optimisation is executed when querying current
#amount list (there is a usable full inventory which is the latest). amount list (there is a usable full inventory which is the latest).
""" """
inventory = self.getInventoryList(node_uid=self.node_uid) inventory = self.getInventoryList(node_uid=self.node_uid)
reference_inventory = [ reference_inventory = [
...@@ -2249,14 +2249,12 @@ class TestInventoryDocument(InventoryAPITestCase): ...@@ -2249,14 +2249,12 @@ class TestInventoryDocument(InventoryAPITestCase):
# use optimisation # use optimisation
self.assertEquals(True,movement in self.resource.getCurrentInventoryList( self.assertEquals(True,movement in self.resource.getCurrentInventoryList(
from_date=movement.getStartDate(), from_date=movement.getStartDate(),
node_uid=self.node_uid, node_uid=self.node_uid))
**inventory_kw))
# without optimisation # without optimisation
self.assertEquals(True,movement in self.resource.getCurrentInventoryList( self.assertEquals(True,movement in self.resource.getCurrentInventoryList(
optimisation__=False, optimisation__=False,
from_date=movement.getStartDate(), from_date=movement.getStartDate(),
node_uid=self.node_uid, node_uid=self.node_uid))
**inventory_kw))
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