Commit 972f705f authored by Arnaud Fontaine's avatar Arnaud Fontaine Committed by Sebastien Robin

Tester decision movement can be a SM.

Followup of 4b664ba: When comparing Trade Model Rule input_movement from
AmountGenerator and decision which is a Simulation Movement.

This fixes test_13_AddAllowanceForOutsourcingOrder.
parent 0a792e58
......@@ -57,7 +57,8 @@ class NetConvertedQuantityEquivalenceTester(FloatEquivalenceTester):
# XXX: QuantityDivergenceTester from Legacy Simulation: A delivery
# quantity of 0 is an exceptional case that we cannot really handle with
# the current approach of delivery ratio.
if decision_value == 0.0:
if (decision_movement.getPortalType() != 'Simulation Movement' and
decision_value == 0.0):
prevision_value = sum([
sm.getMappedProperty('corrected_quantity')
for sm in decision_movement.getDeliveryRelatedValueList(
......
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