woob.tools.capabilities.bank.test

class woob.tools.capabilities.bank.test.BankStandardTest

Bases: object

Mixin for simple tests on CapBank backends.

This checks: * there are accounts * accounts have an id, a label and a balance * history is implemented (optional) * transactions have a date, a label and an amount * investments are implemented (optional) * investments have a label and a valuation * recipients are implemented (optional) * recipients have an id and a label

allow_notimplemented_coming = False
allow_notimplemented_emitters = False
allow_notimplemented_history = False
allow_notimplemented_investments = False
allow_notimplemented_market_orders = False
allow_notimplemented_pockets = False
allow_notimplemented_recipients = False
check_account(account)
check_coming(account)
check_emitter(emitter)
check_emitters()
check_history(account)
check_investment(account, inv)
check_investments(account)
check_market_order(account, market_order)
check_market_orders(account)
check_pocket(account, pocket)
check_pockets(account)
check_recipient(account, rcpt)
check_recipients(account)
check_transaction(account, tr, coming)
test_basic()