From 7911debbbb6803c60a3500c0c7611ad238559e5d Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 1 Sep 2011 17:51:54 +0200 Subject: [PATCH] fix test following the change in 414042ade46f3a5b9e1dd1d60fc95761bc6eea7a --- product/ERP5/tests/testTradeModelLine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testTradeModelLine.py b/product/ERP5/tests/testTradeModelLine.py index 2c70e0ced4..cb89498fd9 100644 --- a/product/ERP5/tests/testTradeModelLine.py +++ b/product/ERP5/tests/testTradeModelLine.py @@ -400,8 +400,8 @@ class TestTradeModelLine(TestTradeModelLineMixin): def check(movement, movement_id): kw = {} for reference, result in expected_result_dict.iteritems(): - total_price = result.get(movement_id) - if total_price: + total_price = result.get(movement_id) or 0.0 + if True: model_line = self['trade_model_line/' + reference] kw[reference] = dict(total_price=total_price, causality_value_list=[model_line], -- 2.30.9