Commit c8dc9736 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* commit transaction in beforeTearDown()

* clear cache after adding target solver portal type.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36652 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e4b7a7c
...@@ -601,6 +601,8 @@ class TestAutomaticSolvingPackingList(TestERP5SimulationMixin, TestPackingListMi ...@@ -601,6 +601,8 @@ class TestAutomaticSolvingPackingList(TestERP5SimulationMixin, TestPackingListMi
solver_process_type_info = self.portal.portal_types['Solver Process'] solver_process_type_info = self.portal.portal_types['Solver Process']
solver_process_type_info.setTypeAllowedContentTypeList(self.original_allowed_content_types) solver_process_type_info.setTypeAllowedContentTypeList(self.original_allowed_content_types)
self.portal.portal_solvers.manage_delObjects(self.added_target_solver_list) self.portal.portal_solvers.manage_delObjects(self.added_target_solver_list)
transaction.commit()
self.tic()
TestERP5SimulationMixin.beforeTearDown(self) TestERP5SimulationMixin.beforeTearDown(self)
@UnrestrictedMethod @UnrestrictedMethod
...@@ -626,6 +628,7 @@ class TestAutomaticSolvingPackingList(TestERP5SimulationMixin, TestPackingListMi ...@@ -626,6 +628,7 @@ class TestAutomaticSolvingPackingList(TestERP5SimulationMixin, TestPackingListMi
chain_dict['chain_%s' % solver_id] = 'solver_workflow' chain_dict['chain_%s' % solver_id] = 'solver_workflow'
self.portal.portal_workflow.manage_changeWorkflows(default_chain, self.portal.portal_workflow.manage_changeWorkflows(default_chain,
props=chain_dict) props=chain_dict)
self.portal.portal_caches.clearAllCache()
self.added_target_solver_list.append(solver_id) self.added_target_solver_list.append(solver_id)
def stepSetUpAutomaticQuantityAcceptSolver(self, sequence=None, sequence_list=None): def stepSetUpAutomaticQuantityAcceptSolver(self, sequence=None, sequence_list=None):
......
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