Commit 157adfe6 authored by Łukasz Nowak's avatar Łukasz Nowak

Override bootstrapSite to minimise it.

parent 29684c98
...@@ -30,6 +30,7 @@ import random ...@@ -30,6 +30,7 @@ import random
import transaction import transaction
import unittest import unittest
import Products.Vifib.tests.VifibMixin import Products.Vifib.tests.VifibMixin
from Products.ERP5Type.tests.utils import DummyMailHost
class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin): class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin):
def afterSetUp(self): def afterSetUp(self):
...@@ -45,6 +46,32 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin): ...@@ -45,6 +46,32 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin):
self.portal._p_changed = 1 self.portal._p_changed = 1
transaction.commit() transaction.commit()
def bootstrapSite(self):
if self.isLiveTest():
# nothing to do in Live Test
return
self.setupPortalCertificateAuthority()
self.setupPayZenInterface()
self.setUpMemcached()
portal = self.getPortal()
if 'MailHost' in portal.objectIds():
portal.manage_delObjects(['MailHost'])
portal._setObject('MailHost', DummyMailHost('MailHost'))
portal.email_from_address = 'romain@nexedi.com'
portal.email_to_address = 'romain@nexedi.com'
self.clearCache()
self.login()
# Invoke Post-configurator script, this invokes all
# alarms related to configuration.
self.portal.BusinessConfiguration_invokePromiseAlarmList()
transaction.commit()
self.tic()
self.logout()
self.loginDefaultUser()
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
Install the business templates. Install the business templates.
......
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