Commit d779899b authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: stop hardcoding expected trade condition

parent 25cf0d59
......@@ -10,8 +10,8 @@ assert context.getPortalType() == 'Sale Invoice Transaction'
assert context.getPaymentMode() in ('payzen', 'wechat')
assert context.getSimulationState() == 'stopped'
assert context.getTotalPrice() != 0
assert context.getSpecialise() in ("sale_trade_condition_module/slapos_aggregated_trade_condition",
"sale_trade_condition_module/slapos_aggregated_subscription_trade_condition")
assert context.getLedger() == 'automated'
assert context.getSpecialise(None) is not None
# Dont create if the invoice is already paied
assert not context.SaleInvoiceTransaction_isLettered()
......
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