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