Commit 22017de7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify tests according to recent changes.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33959 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8713a96
......@@ -136,6 +136,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
solver_process.contentValues())[0]
# use Quantity Accept Solver.
quantity_solver_decision.setSolverValue(self.portal.portal_types['Accept Solver'])
# configure for Accept Solver.
kw = {'tested_property_list':['quantity',]}
quantity_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -170,6 +173,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
solver_process.contentValues())[0]
# use Resource Replacement Solver.
resource_solver_decision.setSolverValue(self.portal.portal_types['Accept Solver'])
# configure for Accept Solver.
kw = {'tested_property_list':['resource',]}
resource_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -218,6 +224,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
solver_process.contentValues())[0]
# use Quantity Adoption Solver.
quantity_solver_decision.setSolverValue(self.portal.portal_types['Adopt Solver'])
# configure for Adopt Solver.
kw = {'tested_property_list':['quantity',]}
quantity_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -256,6 +265,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
solver_process.contentValues())[0]
# use Resource Adopt Solver.
resource_solver_decision.setSolverValue(self.portal.portal_types['Adopt Solver'])
# configure for Adopt Solver.
kw = {'tested_property_list':['resource',]}
resource_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -285,6 +297,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
solver_process.contentValues()):
# use Destination Replacement Solver.
destination_solver_decision.setSolverValue(self.portal.portal_types['Accept Solver'])
# configure for Accept Solver.
kw = {'tested_property_list':['destination',]}
destination_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -296,8 +311,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
solver_process.contentValues()):
# use StartDate Replacement Solver.
start_date_solver_decision.setSolverValue(self.portal.portal_types['Unify Solver'])
# configure for Quantity Split Solver.
kw = {'value':document.getStartDate()}
# configure for Unify Solver.
kw = {'tested_property_list':['start_date',],
'value':document.getStartDate()}
start_date_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList()
solver_process.solve()
......@@ -325,8 +341,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
solver_process.contentValues()):
# use StartDate Replacement Solver.
start_date_solver_decision.setSolverValue(self.portal.portal_types['Unify Solver'])
# configure for Quantity Split Solver.
kw = {'value':start_date}
# configure for Unify Solver.
kw = {'tested_property_list':['start_date',],
'value':start_date}
start_date_solver_decision.updateConfiguration(**kw)
solver_process.buildTargetSolverList()
solver_process.solve()
......
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