diff --git a/tests/test_meta_approval.py b/tests/test_meta_approval.py index 90f01ec84f109d2446202918e2980ca9fd81e2f9..2bc883cd683687d068fb763ec56a55cf5b9bf19e 100644 --- a/tests/test_meta_approval.py +++ b/tests/test_meta_approval.py @@ -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:Accounts', + '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), ]) assert not list(hook.run(txn))