Commit 2d77a813 authored by Romain Courteaud's avatar Romain Courteaud

The preferred way is to call getAggregatedAmountList on the amount generator itself

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34851 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf9bf6e0
...@@ -639,7 +639,11 @@ class TestApparelTransformation(TestOrderMixin, ERP5TypeTestCase): ...@@ -639,7 +639,11 @@ class TestApparelTransformation(TestOrderMixin, ERP5TypeTestCase):
resource = produced_resource, resource = produced_resource,
specialise=transformation.getRelativeUrl(), specialise=transformation.getRelativeUrl(),
) )
aggregated_amount_list = production_order.getAggregatedAmountList([context]) aggregated_amount_list = context.getAggregatedAmountList(
amount_generator_type_list=("Transformation",
"Transformation Transformed Resource",
"Transformation Operation",
))
expected_amount_list = expected['amount'] expected_amount_list = expected['amount']
expected_amount_list_len = len(expected_amount_list) expected_amount_list_len = len(expected_amount_list)
......
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