follow naming conventions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31874 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f2136183
...@@ -44,7 +44,7 @@ TEST_HOME = os.path.dirname(__file__) ...@@ -44,7 +44,7 @@ TEST_HOME = os.path.dirname(__file__)
def openTestFile(filename): def openTestFile(filename):
return file(os.path.join(TEST_HOME, 'test_data', 'crm_emails', filename)) return file(os.path.join(TEST_HOME, 'test_data', 'crm_emails', filename))
clear_module_names = """ clear_module_name_list = """
campaign_module campaign_module
event_module event_module
meeting_module meeting_module
...@@ -71,7 +71,7 @@ class BaseTestCRM(ERP5TypeTestCase): ...@@ -71,7 +71,7 @@ class BaseTestCRM(ERP5TypeTestCase):
self.portal.manage_delObjects(['MailHost']) self.portal.manage_delObjects(['MailHost'])
self.portal._setObject('MailHost', DummyMailHost('MailHost')) self.portal._setObject('MailHost', DummyMailHost('MailHost'))
# clear modules if necessary # clear modules if necessary
for module_name in clear_module_names: for module_name in clear_module_name_list:
module = getattr(self.portal, module_name) module = getattr(self.portal, module_name)
module.manage_delObjects(list(module.objectIds())) module.manage_delObjects(list(module.objectIds()))
......
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