[Erp5-report] r29896 - /erp5/trunk/products/ERP5/tests/testInventoryAPI.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 21 18:30:36 CEST 2009
Author: mame
Date: Wed Oct 21 18:30:35 2009
New Revision: 29896
URL: http://svn.erp5.org?rev=29896&view=rev
Log:
Remove wrong parameter that was passed during last commit
Modified:
erp5/trunk/products/ERP5/tests/testInventoryAPI.py
Modified: erp5/trunk/products/ERP5/tests/testInventoryAPI.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInventoryAPI.py?rev=29896&r1=29895&r2=29896&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInventoryAPI.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInventoryAPI.py [utf8] Wed Oct 21 18:30:35 2009
@@ -1933,8 +1933,8 @@
def test_01_CurrentInventoryWithFullInventory(self):
"""
- #Check that inventory optimisation is executed when querying current
- #amount (there is a usable full inventory which is the latest).
+ Check that inventory optimisation is executed when querying current
+ amount (there is a usable full inventory which is the latest).
"""
self.getInventoryEquals(value=self.INVENTORY_QUANTITY_3 + \
self.BASE_QUANTITY,
@@ -1942,8 +1942,8 @@
def test_02_InventoryAtLatestFullInventoryDate(self):
"""
- #Check that inventory optimisation is executed when querying an amount
- #at the exact time of latest usable full inventory.
+ Check that inventory optimisation is executed when querying an amount
+ at the exact time of latest usable full inventory.
"""
self.getInventoryEquals(value=self.INVENTORY_QUANTITY_3,
inventory_kw={'node_uid': self.node_uid,
@@ -1951,8 +1951,8 @@
def test_03_InventoryAtEarlierFullInventoryDate(self):
"""
- #Check that inventory optimisation is executed when querying past
- #amount (there is a usable full inventory which is not the latest).
+ Check that inventory optimisation is executed when querying past
+ amount (there is a usable full inventory which is not the latest).
"""
self.getInventoryEquals(value=self.INVENTORY_QUANTITY_2 + \
self.BASE_QUANTITY,
@@ -1962,12 +1962,12 @@
def test_04_InventoryBeforeFullInventoryAfterPartialInventory(self):
"""
- #Check that optimisation is not executed when querying past amount
- #with no usable full inventory.
-
- #If optimisation was executed,
- # self.INVENTORY_QUANTITY_1 * 2 + self.BASE_QUANTITY * 2
- #would be found.
+ Check that optimisation is not executed when querying past amount
+ with no usable full inventory.
+
+ If optimisation was executed,
+ self.INVENTORY_QUANTITY_1 * 2 + self.BASE_QUANTITY * 2
+ would be found.
"""
self.assertEquals(self.ACTUAL_INVENTORY_QUANTITY_1 + \
self.BASE_QUANTITY * 2,
@@ -1976,8 +1976,8 @@
def test_05_InventoryListWithFullInventory(self):
"""
- #Check that inventory optimisation is executed when querying current
- #amount list (there is a usable full inventory which is the latest).
+ Check that inventory optimisation is executed when querying current
+ amount list (there is a usable full inventory which is the latest).
"""
inventory = self.getInventoryList(node_uid=self.node_uid)
reference_inventory = [
@@ -2249,14 +2249,12 @@
# use optimisation
self.assertEquals(True,movement in self.resource.getCurrentInventoryList(
from_date=movement.getStartDate(),
- node_uid=self.node_uid,
- **inventory_kw))
+ node_uid=self.node_uid))
# without optimisation
self.assertEquals(True,movement in self.resource.getCurrentInventoryList(
optimisation__=False,
from_date=movement.getStartDate(),
- node_uid=self.node_uid,
- **inventory_kw))
+ node_uid=self.node_uid))
class TestUnitConversion(InventoryAPITestCase):
QUANTITY_UNIT_CATEGORIES = {
More information about the Erp5-report
mailing list