@@ -24,6 +24,7 @@ REQUIRED_ACCOUNTS = {
'Assets:Bank:Checking',
'Assets:Cash',
'Assets:Savings',
'Liabilities:Payable:Accounts',
}
NON_REQUIRED_ACCOUNTS = {
@@ -32,7 +33,8 @@ NON_REQUIRED_ACCOUNTS = {
'Equity:QpeningBalance',
'Expenses:Other',
'Income:Other',
'Liabilities:Payable:Vacation',
'Liabilities:UnearnedIncome:Donations',
CREDITCARD_ACCOUNT = 'Liabilities:CreditCard'
@@ -148,10 +150,9 @@ def test_approval_not_required_to_charge_credit_card(hook):
])
assert not list(hook.run(txn))
@pytest.mark.parametrize('acct', REQUIRED_ACCOUNTS)
def test_approval_not_required_to_pay_credit_card(hook, acct):
def test_approval_not_required_to_pay_credit_card(hook):
txn = testutil.Transaction(postings=[
(acct, -25),
('Assets:Checking', -25),
(CREDITCARD_ACCOUNT, 25),