@@ -23,7 +23,7 @@ from . import testutil
from conservancy_beancount import errors as errormod
from conservancy_beancount.plugin import meta_receivable_documentation
TEST_ACCT = 'Accrued:AccountsReceivable'
TEST_ACCT = 'Assets:Receivable:Accounts'
OTHER_ACCT = 'Income:Donations'
SUPPORTING_METADATA = [
@@ -178,9 +178,17 @@ def test_type_errors_reported_with_valid_txn_docs(hook, invoice, support_key, su
def test_received_invoices_not_checked(hook, invoice, meta_type):
check(hook, None, **{meta_type: {'invoice': invoice}})
def test_does_not_apply_to_payables(hook):
@pytest.mark.parametrize('account', [
'Assets:Bank:Checking',
'Assets:Cash',
'Equity:OpeningBalance',
'Expenses:BankingFees',
'Liabilities:CreditCard',
'Liabilities:Payable:Accounts',
])
def test_does_not_apply_to_other_accounts(hook, account):
meta = seed_meta()
check(hook, None, 'Accrued:AccountsPayable', 'Expenses:Other', post_meta=meta)
check(hook, None, account, 'Expenses:Other', post_meta=meta)
def test_configuration_error_without_rt():
config = testutil.TestConfig()