Commit b0ff7ee6 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix conflicts between 2a188797 and df04eb69.

* 2a188797: "simulation: improve equivalence testers explanations messages"
* df04eb69: "Implement delivery.getQuantity() == 0."
parent 50b6baf3
...@@ -70,8 +70,6 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -70,8 +70,6 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin):
list : (prevision_value, decision_value, message, mapping) list : (prevision_value, decision_value, message, mapping)
""" """
tested_property = self.getTestedProperty() tested_property = self.getTestedProperty()
property_name = getattr(self, 'getTranslatedTestedPropertyTitle', lambda: None)() or \
tested_property
if getattr(decision_movement, 'isPropertyRecorded', if getattr(decision_movement, 'isPropertyRecorded',
lambda x:False)(tested_property): lambda x:False)(tested_property):
decision_value = decision_movement.getRecordedProperty(tested_property) or 0.0 decision_value = decision_movement.getRecordedProperty(tested_property) or 0.0
...@@ -90,6 +88,8 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -90,6 +88,8 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin):
prevision_movement, prevision_value, prevision_movement, prevision_value,
decision_movement, decision_value): decision_movement, decision_value):
tested_property = self.getTestedProperty() tested_property = self.getTestedProperty()
property_name = getattr(self, 'getTranslatedTestedPropertyTitle', lambda: None)() or \
tested_property
if prevision_movement.getDelivery() == decision_movement.getRelativeUrl(): if prevision_movement.getDelivery() == decision_movement.getRelativeUrl():
# use delivery_ratio if specified # use delivery_ratio if specified
if self.getProperty('use_delivery_ratio'): if self.getProperty('use_delivery_ratio'):
......
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