Commit e6820036 authored by Jérome Perrin's avatar Jérome Perrin

clean modules in tear down


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23533 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84147044
......@@ -78,6 +78,19 @@ class TestResource(ERP5TypeTestCase):
self.category_tool = self.getCategoryTool()
self.createCategories()
def beforeTearDown(self):
get_transaction().abort()
for folder in (
self.portal.getDefaultModule(self.resource_portal_type),
self.portal.getDefaultModule(self.sale_supply_portal_type),
self.portal.getDefaultModule("Currency"),
self.portal.getDefaultModule(self.node_portal_type),
self.portal.getDefaultModule("Sale Order"),
self.portal.getDefaultModule("Purchase Order"),):
folder.manage_delObjects([i for i in folder.objectIds()])
get_transaction().commit()
self.tic()
def createCategories(self):
"""
Light install create only base categories, so we create
......
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