Commit 03ab3389 authored by Guillaume Michon's avatar Guillaume Michon

Use Apparel instead of VPN as testing Items.

Adapt to new modules names


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3813 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ac77fad
...@@ -63,8 +63,8 @@ class TestImmobilisation(ERP5TypeTestCase): ...@@ -63,8 +63,8 @@ class TestImmobilisation(ERP5TypeTestCase):
first_name1 = 'Guillaume' first_name1 = 'Guillaume'
last_name1 = 'MICHON' last_name1 = 'MICHON'
item_portal_type = 'Nexedi VPN' item_portal_type = 'Apparel Fabric Item'
item_module_name = 'vpn' item_module_name = 'apparel_fabric_item_module'
item_id_list = ['vpn_1', 'vpn_2', 'vpn_3', 'vpn_4', 'vpn_5', 'vpn_6', 'vpn_7', 'vpn_8', 'vpn_9', 'vpn_10', 'vpn_11', 'vpn_12'] item_id_list = ['vpn_1', 'vpn_2', 'vpn_3', 'vpn_4', 'vpn_5', 'vpn_6', 'vpn_7', 'vpn_8', 'vpn_9', 'vpn_10', 'vpn_11', 'vpn_12']
current_step = {} current_step = {}
...@@ -4869,7 +4869,7 @@ class TestImmobilisation(ERP5TypeTestCase): ...@@ -4869,7 +4869,7 @@ class TestImmobilisation(ERP5TypeTestCase):
Return the list of business templates. Return the list of business templates.
""" """
return ('erp5_trade', 'erp5_accounting', return ('erp5_trade', 'erp5_accounting',
'nexedi_vpn', 'erp5_immobilisation') 'erp5_apparel', 'erp5_immobilisation')
def convertToLowerCase(self, key): def convertToLowerCase(self, key):
""" """
...@@ -4895,10 +4895,10 @@ class TestImmobilisation(ERP5TypeTestCase): ...@@ -4895,10 +4895,10 @@ class TestImmobilisation(ERP5TypeTestCase):
return getattr(self.getPortal(), 'organisation', None) return getattr(self.getPortal(), 'organisation', None)
def getAccountingModule(self): def getAccountingModule(self):
return getattr(self.getPortal(), 'accounting', None) return getattr(self.getPortal(), 'accounting_module', None)
def getAccountModule(self): def getAccountModule(self):
return getattr(self.getPortal(), 'account', None) return getattr(self.getPortal(), 'account_module', None)
def getDeliveryModule(self): def getDeliveryModule(self):
return getattr(self.getPortal(), 'purchase_packing_list_module', None) return getattr(self.getPortal(), 'purchase_packing_list_module', None)
...@@ -5012,6 +5012,7 @@ class TestImmobilisation(ERP5TypeTestCase): ...@@ -5012,6 +5012,7 @@ class TestImmobilisation(ERP5TypeTestCase):
self.tic() self.tic()
delivery_line.immediateReindexObject() delivery_line.immediateReindexObject()
delivery_line.setAggregateValueList(item_list) delivery_line.setAggregateValueList(item_list)
LOG('delivery_line : ', 0, delivery_line.getRelativeUrl())
delivery_line.immediateReindexObject() delivery_line.immediateReindexObject()
get_transaction().commit() get_transaction().commit()
......
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