Commit c88c2e42 authored by Xiaowu Zhang's avatar Xiaowu Zhang

epr5_corporate_identity_test: active default preference if disabled

parent d22573a4
......@@ -87,11 +87,9 @@ class TestCorporateIdentityTemplateList(ERP5TypeTestCase):
self.message_catalog.message_edit('Press Release', 'de', 'Pressemeldung', '')
# Activating a system preference if none is activated
for preference in self.portal.portal_catalog(portal_type="System Preference"):
if preference.getPreferenceState() == "global":
break
else:
self.portal.portal_preferences.default_nexedi_system_preference.enable()
preference = self.getDefaultSystemPreference()
if preference.getPreferenceState() != "global":
preference.enable()
self.tic()
def createTestEvent(self, target_language, source_relative_url, destination_relative_url):
......
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