Commit 64d1a55f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use Net Converted Quantity Divergence Tester with tested_property=quantity...

use Net Converted Quantity Divergence Tester with tested_property=quantity instead of Float Divergence Tester with tested_property=converted_quantity.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31516 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 87c7c484
......@@ -79,11 +79,11 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
tested_property=i,
divergence_provider=0,
matching_provider=1)
# create float divergence testers
for i in ('converted_quantity',):
# create net converted quantity divergence testers
for i in ('quantity',):
new_order_rule.newContent(
title='%s divergence tester' % i,
portal_type='Float Divergence Tester',
portal_type='Net Converted Quantity Divergence Tester',
tested_property=i,
use_delivery_ratio=1,
quantity_range_min=-1,
......@@ -125,7 +125,7 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
solver_process = solver_tool.newSolverProcess(packing_list)
sequence.edit(solver_process=solver_process)
quantity_solver_decision = filter(
lambda x:x.getCausalityValue().getTestedProperty()=='converted_quantity',
lambda x:x.getCausalityValue().getTestedProperty()=='quantity',
solver_process.contentValues())[0]
# use Quantity Split Solver.
quantity_solver_decision.setSolverValue(self.portal.portal_types['Quantity Split Solver'])
......@@ -288,11 +288,11 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
portal_type='DateTime Divergence Tester',
tested_property=i,
quantity=0)
# create float divergence testers
# create net converted quantity divergence testers
for i in ('quantity',):
new_order_rule.newContent(
title='%s divergence tester' % i,
portal_type='Float Divergence Tester', # XXX-JPS Quantity Divergence Tester ? (ie. quantity unit)
portal_type='Net Converted Quantity Divergence Tester',
tested_property=i,
use_delivery_ratio=1,
quantity=0)
......
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