Commit e53b354e authored by Rafael Monnerat's avatar Rafael Monnerat

Update test.

* configuration save has no such attribute, use getConfigurationGlobalAttr instead.

* There is no need to add additional properties on business configuration from begin anymore.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42115 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d95d08d
...@@ -36,8 +36,7 @@ from Products.ERP5Type.tests.SecurityTestCase import SecurityTestCase ...@@ -36,8 +36,7 @@ from Products.ERP5Type.tests.SecurityTestCase import SecurityTestCase
from Products.ERP5Type.tests.backportUnittest import expectedFailure from Products.ERP5Type.tests.backportUnittest import expectedFailure
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from AccessControl import Unauthorized from AccessControl import Unauthorized
from zLOG import LOG import transaction
class TestLiveConfiguratorWorkflowMixin(ERP5TypeLiveTestCase, SecurityTestCase): class TestLiveConfiguratorWorkflowMixin(ERP5TypeLiveTestCase, SecurityTestCase):
""" """
...@@ -189,9 +188,7 @@ class TestLiveConsultingConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -189,9 +188,7 @@ class TestLiveConsultingConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
module = self.portal.business_configuration_module module = self.portal.business_configuration_module
business_configuration = module.newContent( business_configuration = module.newContent(
portal_type="Business Configuration", portal_type="Business Configuration",
title='Test Configurator Consulting Workflow', title='Test Configurator Consulting Workflow')
user_interface_description_file_id='consulting_configuration_ui_description.ods',
configuration_after_script_id='')
next_dict = {} next_dict = {}
sequence.edit(business_configuration=business_configuration, sequence.edit(business_configuration=business_configuration,
next_dict=next_dict) next_dict=next_dict)
...@@ -286,9 +283,7 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -286,9 +283,7 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
module = self.portal.business_configuration_module module = self.portal.business_configuration_module
business_configuration = module.newContent( business_configuration = module.newContent(
portal_type="Business Configuration", portal_type="Business Configuration",
title='Test Configurator Standard Workflow', title='Test Configurator Standard Workflow')
user_interface_description_file_id='basic_configuration_ui_description.ods',
configuration_after_script_id='BusinessConfiguration_afterConfiguration')
next_dict = {} next_dict = {}
sequence.edit(business_configuration=business_configuration, sequence.edit(business_configuration=business_configuration,
next_dict=next_dict) next_dict=next_dict)
...@@ -485,8 +480,8 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -485,8 +480,8 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
business_configuration = sequence.get("business_configuration") business_configuration = sequence.get("business_configuration")
person_number_business_configuration_save = business_configuration['4'] person_number_business_configuration_save = business_configuration['4']
self.assertEquals(6, self.assertEquals(6, business_configuration.getGlobalConfigurationAttr(
person_number_business_configuration_save.company_employees_number) "company_employees_number"))
self.assertEquals(0, self.assertEquals(0,
len(person_number_business_configuration_save.contentValues())) len(person_number_business_configuration_save.contentValues()))
person_business_configuration_save = business_configuration['5'] person_business_configuration_save = business_configuration['5']
...@@ -1146,7 +1141,7 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -1146,7 +1141,7 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
delivery.confirm() delivery.confirm()
delivery.start() delivery.start()
delivery.stop() delivery.stop()
get_transaction().commit() transaction.commit()
self.tic() self.tic()
# inventories of that resource are index in grams # inventories of that resource are index in grams
......
554 556
\ No newline at end of file \ No newline at end of file
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