Commit 49a08c42 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

override stepUnifyStartDateWithDecision to use the new simulation API.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31486 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5defe81f
...@@ -437,6 +437,21 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): ...@@ -437,6 +437,21 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
solver_process.buildTargetSolverList() solver_process.buildTargetSolverList()
solver_process.solve() solver_process.solve()
def stepUnifyStartDateWithDecision(self,sequence=None, sequence_list=None, **kw):
"""
Check if simulation movement are disconnected
"""
packing_list = sequence.get('packing_list')
solver_tool = self.portal.portal_solvers
solver_process = solver_tool.newSolverProcess(packing_list)
for start_date_solver_decision in filter(
lambda x:x.getCausalityValue().getTestedProperty()=='start_date',
solver_process.contentValues()):
# use StartDate Replacement Solver.
start_date_solver_decision.setSolverValue(self.portal.portal_types['Start Date Replacement Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5Simulation)) suite.addTest(unittest.makeSuite(TestERP5Simulation))
......
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