Commit 33aff85f authored by Sebastien Robin's avatar Sebastien Robin

allow to override the default site preference id

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36170 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d52b7b6
...@@ -582,10 +582,16 @@ class ERP5TypeTestCase(ProcessingNodeTestCase, PortalTestCase): ...@@ -582,10 +582,16 @@ class ERP5TypeTestCase(ProcessingNodeTestCase, PortalTestCase):
"""Update conversion server (Oood) at default site preferences. """Update conversion server (Oood) at default site preferences.
""" """
conversion_dict = _getConversionServerDict() conversion_dict = _getConversionServerDict()
preference = self.portal.portal_preferences.default_site_preference preference = self.portal.portal_preferences[
self.getDefaultSitePreferenceId()]
preference._setPreferredOoodocServerAddress(conversion_dict['hostname']) preference._setPreferredOoodocServerAddress(conversion_dict['hostname'])
preference._setPreferredOoodocServerPortNumber(conversion_dict['port']) preference._setPreferredOoodocServerPortNumber(conversion_dict['port'])
def getDefaultSitePreferenceId(self):
"""Default id, usefull method to override
"""
return "default_site_preference"
def _recreateCatalog(self, quiet=0): def _recreateCatalog(self, quiet=0):
"""Clear activities and catalog and recatalog everything. """Clear activities and catalog and recatalog everything.
Test runner can set `erp5_tests_recreate_catalog` environnement variable, Test runner can set `erp5_tests_recreate_catalog` environnement variable,
......
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