Commit de1edcdb authored by Sebastien Robin's avatar Sebastien Robin

make sure to cleanup accounting between each test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13430 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b8dc0c0
...@@ -270,14 +270,12 @@ class TestImmobilisationMixin(TestOrderMixin, ERP5TypeTestCase): ...@@ -270,14 +270,12 @@ class TestImmobilisationMixin(TestOrderMixin, ERP5TypeTestCase):
#LOG('item_id_list after',0,[r for r in self.getPortal().material_module.objectIds()]) #LOG('item_id_list after',0,[r for r in self.getPortal().material_module.objectIds()])
#item_catalog = [(r.uid,r.path) for r in self.getPortal().portal_catalog(portal_type = 'Material')] #item_catalog = [(r.uid,r.path) for r in self.getPortal().portal_catalog(portal_type = 'Material')]
#LOG('item_catalog after',0,item_catalog)
get_transaction().commit()
self.tic()
pl_id_list = [r for r in self.getPortal().purchase_packing_list_module.objectIds()] pl_id_list = [r for r in self.getPortal().purchase_packing_list_module.objectIds()]
#LOG('pl_id_list before',0,pl_id_list)
self.getPortal().purchase_packing_list_module.manage_delObjects(pl_id_list) self.getPortal().purchase_packing_list_module.manage_delObjects(pl_id_list)
item_id_list = [r for r in self.getAccountingModule().objectIds()]
self.getAccountingModule().manage_delObjects(item_id_list)
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
......
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