Commit 3cca5327 authored by Łukasz Nowak's avatar Łukasz Nowak

Drop test method, just setup trade phase membership.

parent 78bda3b2
...@@ -138,7 +138,8 @@ class TestTradeModelLineMixin(TestBPMMixin, UserDict): ...@@ -138,7 +138,8 @@ class TestTradeModelLineMixin(TestBPMMixin, UserDict):
successor='trade_state/accounted', successor='trade_state/accounted',
delivery_builder=['portal_deliveries/purchase_invoice_transaction_trade_model_builder', delivery_builder=['portal_deliveries/purchase_invoice_transaction_trade_model_builder',
'portal_deliveries/sale_invoice_transaction_trade_model_builder'], 'portal_deliveries/sale_invoice_transaction_trade_model_builder'],
test_tales_expression="python: context.getResourceValue() is not None and context.getResourceValue().getUse() == 'discount'", membership_criterion_base_category=('trade_phase',),
membership_criterion_category=('trade_phase/default/discount',),
), ),
dict(reference='tax', dict(reference='tax',
trade_phase='default/tax', trade_phase='default/tax',
...@@ -154,7 +155,8 @@ class TestTradeModelLineMixin(TestBPMMixin, UserDict): ...@@ -154,7 +155,8 @@ class TestTradeModelLineMixin(TestBPMMixin, UserDict):
successor='trade_state/accounted', successor='trade_state/accounted',
delivery_builder=['portal_deliveries/purchase_invoice_transaction_trade_model_builder', delivery_builder=['portal_deliveries/purchase_invoice_transaction_trade_model_builder',
'portal_deliveries/sale_invoice_transaction_trade_model_builder'], 'portal_deliveries/sale_invoice_transaction_trade_model_builder'],
test_tales_expression="python: context.getResourceValue() is not None and context.getResourceValue().getUse() == 'tax'", membership_criterion_base_category=('trade_phase',),
membership_criterion_category=('trade_phase/default/tax',),
), ),
] ]
for business_link in business_link_list: for business_link in business_link_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