Commit 815c5258 authored by Romain Courteaud's avatar Romain Courteaud

Clear modules after each test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27334 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee6e5211
......@@ -66,6 +66,15 @@ class TestWorklist(ERP5TypeTestCase):
def getTitle(self):
return "Worklist"
def clearModule(self, module):
module.manage_delObjects(list(module.objectIds()))
transaction.commit()
self.tic()
def beforeTearDown(self):
self.clearModule(self.portal.person_module)
self.clearModule(self.portal.organisation_module)
def getBusinessTemplateList(self):
"""
Return list of bt5 to install
......
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