Commit a8cfc3c9 authored by Rafael Monnerat's avatar Rafael Monnerat

Consulting workflow requires Conversion Server be available for convert imported spreadsheets.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 870fb3c3
...@@ -34,6 +34,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList ...@@ -34,6 +34,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.SecurityTestCase import SecurityTestCase 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.ERP5TypeTestCase import _getConversionServerDict
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from AccessControl import Unauthorized from AccessControl import Unauthorized
import transaction import transaction
...@@ -93,7 +94,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -93,7 +94,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
self.stepCleanUpRequest() self.stepCleanUpRequest()
self.restricted_security = 0 self.restricted_security = 0
# information to know if a business template is a standard business # information to know if a business template is a standard business
# template or a custom one # template or a custom one
self.portal.portal_templates.updateRepositoryBusinessTemplateList( self.portal.portal_templates.updateRepositoryBusinessTemplateList(
...@@ -101,9 +101,18 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase): ...@@ -101,9 +101,18 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
# it is required by SecurityTestCase # it is required by SecurityTestCase
self.workflow_tool = self.portal.portal_workflow self.workflow_tool = self.portal.portal_workflow
self.setDefaultSitePreference()
self.portal.portal_activities.unsubscribe() self.portal.portal_activities.unsubscribe()
def setDefaultSitePreference(self):
default_pref = self.portal.portal_preferences.default_site_preference
conversion_dict = _getConversionServerDict()
default_pref.setPreferredOoodocServerAddress(conversion_dict['hostname'])
default_pref.setPreferredOoodocServerPortNumber(conversion_dict['port'])
if self.portal.portal_workflow.isTransitionPossible(default_pref, 'enable'):
default_pref.enable()
return default_pref
def beforeTearDown(self): def beforeTearDown(self):
self.portal.portal_activities.subscribe() self.portal.portal_activities.subscribe()
ERP5TypeTestCase.beforeTearDown(self) ERP5TypeTestCase.beforeTearDown(self)
......
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