Commit 7911debb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix test following the change in 414042ad

parent aff9d336
...@@ -400,8 +400,8 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -400,8 +400,8 @@ class TestTradeModelLine(TestTradeModelLineMixin):
def check(movement, movement_id): def check(movement, movement_id):
kw = {} kw = {}
for reference, result in expected_result_dict.iteritems(): for reference, result in expected_result_dict.iteritems():
total_price = result.get(movement_id) total_price = result.get(movement_id) or 0.0
if total_price: if True:
model_line = self['trade_model_line/' + reference] model_line = self['trade_model_line/' + reference]
kw[reference] = dict(total_price=total_price, kw[reference] = dict(total_price=total_price,
causality_value_list=[model_line], causality_value_list=[model_line],
......
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