Commit 1bd79643 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* system preference should be global otherwise it will not be effective for 'Member' role users.

* use setUpOnce() instead of afterSetUp() because calling once is enough.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30070 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d1993dc
......@@ -104,7 +104,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
## setup
def afterSetUp(self):
def setUpOnce(self):
self.setSystemPreference()
# set a dummy localizer (because normally it is cookie based)
self.portal.Localizer = DummyLocalizer()
......@@ -115,6 +115,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
def setSystemPreference(self):
default_pref = self.portal.portal_preferences.newContent(portal_type='System Preference')
default_pref.setPriority(1)
default_pref.setPreferredOoodocServerAddress(conversion_server_host[0])
default_pref.setPreferredOoodocServerPortNumber(conversion_server_host[1])
default_pref.setPreferredDocumentFileNameRegularExpression(FILE_NAME_REGULAR_EXPRESSION)
......
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