Commit 55f5402f authored by Jérome Perrin's avatar Jérome Perrin

simplified_invoicing: pylint py3

parent 8d8d1d01
...@@ -401,7 +401,6 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -401,7 +401,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
kw = {} kw = {}
for reference, result in six.iteritems(expected_result_dict): for reference, result in six.iteritems(expected_result_dict):
total_price = result.get(movement_id) or 0.0 total_price = result.get(movement_id) or 0.0
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],
...@@ -427,7 +426,6 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -427,7 +426,6 @@ class TestTradeModelLine(TestTradeModelLineMixin):
len(result_dict)) len(result_dict))
for use in 'discount', 'tax': for use in 'discount', 'tax':
total_price = expected_result_dict[use].get(line.getId()) or 0.0 total_price = expected_result_dict[use].get(line.getId()) or 0.0
if True:
sm = result_dict.pop(use) sm = result_dict.pop(use)
self.assertEqual(round(sm.getTotalPrice() or 0.0, currency_precision), round(total_price, currency_precision)) self.assertEqual(round(sm.getTotalPrice() or 0.0, currency_precision), round(total_price, currency_precision))
self.assertEqual(3, len(sm.getCausalityValueList())) self.assertEqual(3, len(sm.getCausalityValueList()))
......
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