From e53b354e6cf53eb42f3c20ac322b8449a16dcea5 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Fri, 7 Jan 2011 13:12:20 +0000 Subject: [PATCH] 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 --- .../testLiveStandardConfigurationWorkflow.py | 17 ++++++----------- bt5/erp5_configurator_standard/bt/revision | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/bt5/erp5_configurator_standard/TestTemplateItem/testLiveStandardConfigurationWorkflow.py b/bt5/erp5_configurator_standard/TestTemplateItem/testLiveStandardConfigurationWorkflow.py index db3184fd1d..b091bea40b 100644 --- a/bt5/erp5_configurator_standard/TestTemplateItem/testLiveStandardConfigurationWorkflow.py +++ b/bt5/erp5_configurator_standard/TestTemplateItem/testLiveStandardConfigurationWorkflow.py @@ -36,8 +36,7 @@ from Products.ERP5Type.tests.SecurityTestCase import SecurityTestCase from Products.ERP5Type.tests.backportUnittest import expectedFailure from Products.ERP5Type.tests.utils import FileUpload from AccessControl import Unauthorized -from zLOG import LOG - +import transaction class TestLiveConfiguratorWorkflowMixin(ERP5TypeLiveTestCase, SecurityTestCase): """ @@ -189,9 +188,7 @@ class TestLiveConsultingConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): module = self.portal.business_configuration_module business_configuration = module.newContent( portal_type="Business Configuration", - title='Test Configurator Consulting Workflow', - user_interface_description_file_id='consulting_configuration_ui_description.ods', - configuration_after_script_id='') + title='Test Configurator Consulting Workflow') next_dict = {} sequence.edit(business_configuration=business_configuration, next_dict=next_dict) @@ -286,9 +283,7 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): module = self.portal.business_configuration_module business_configuration = module.newContent( portal_type="Business Configuration", - title='Test Configurator Standard Workflow', - user_interface_description_file_id='basic_configuration_ui_description.ods', - configuration_after_script_id='BusinessConfiguration_afterConfiguration') + title='Test Configurator Standard Workflow') next_dict = {} sequence.edit(business_configuration=business_configuration, next_dict=next_dict) @@ -485,8 +480,8 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): business_configuration = sequence.get("business_configuration") person_number_business_configuration_save = business_configuration['4'] - self.assertEquals(6, - person_number_business_configuration_save.company_employees_number) + self.assertEquals(6, business_configuration.getGlobalConfigurationAttr( + "company_employees_number")) self.assertEquals(0, len(person_number_business_configuration_save.contentValues())) person_business_configuration_save = business_configuration['5'] @@ -1146,7 +1141,7 @@ class TestLiveStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): delivery.confirm() delivery.start() delivery.stop() - get_transaction().commit() + transaction.commit() self.tic() # inventories of that resource are index in grams diff --git a/bt5/erp5_configurator_standard/bt/revision b/bt5/erp5_configurator_standard/bt/revision index 8d28c8c9eb..f5bba53e70 100644 --- a/bt5/erp5_configurator_standard/bt/revision +++ b/bt5/erp5_configurator_standard/bt/revision @@ -1 +1 @@ -554 \ No newline at end of file +556 \ No newline at end of file -- 2.30.9