Commit fd921e0a authored by Vincent Desmares's avatar Vincent Desmares

Clean beforeTearDown method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26323 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b9f2bab
......@@ -76,14 +76,14 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
self.web_site_module = self.portal.web_site_module
self.portal_id = self.portal.getId()
def clearModule(self, module):
module.manage_delObjects(list(module.objectIds()))
get_transaction().commit()
self.tic()
def beforeTearDown(self):
get_transaction().abort()
def clearModule(module):
module.manage_delObjects(list(module.objectIds()))
get_transaction().commit()
self.tic()
clearModule(self.portal.web_site_module)
clearModule(self.portal.web_page_module)
self.clearModule(self.portal.web_site_module)
self.clearModule(self.portal.web_page_module)
def setupWebSite(self, **kw):
"""
......
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