Commit 1490512b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

override stepUnifyDestinationWithDecision to use the new simulation API.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31463 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa302748
......@@ -422,6 +422,21 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
[x.getOrder() for x in \
line.getDeliveryRelatedValueList()])
def stepUnifyDestinationWithDecision(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 destination_solver_decision in filter(
lambda x:x.getCausalityValue().getTestedProperty()=='destination',
solver_process.contentValues()):
# use Destination Replacement Solver.
destination_solver_decision.setSolverValue(self.portal.portal_types['Destination Replacement Solver'])
solver_process.buildTargetSolverList()
solver_process.solve()
def test_suite():
suite = unittest.TestSuite()
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