diff --git a/tests/test_meta_entity.py b/tests/test_meta_entity.py index 35f6ffa3f2cdfa5f3baa76a585ad25ccb420b99f..4542fa4769b22f9acb0296e98a58b92ef02a684d 100644 --- a/tests/test_meta_entity.py +++ b/tests/test_meta_entity.py @@ -111,17 +111,21 @@ def test_invalid_values_on_transactions(hook, src_value): for error in hook.run(txn)) @pytest.mark.parametrize('account,required', [ - ('Accrued:AccountsReceivable', True), + ('Assets:Bank:Checking', False), ('Assets:Cash', False), + ('Assets:Receivable:Accounts', True), + ('Assets:Receivable:Loans', True), ('Equity:OpeningBalances', False), ('Expenses:General', True), ('Income:Donations', True), ('Liabilities:CreditCard', False), - ('UnearnedIncome:Donations', True), + ('Liabilities:Payable:Accounts', True), + ('Liabilities:Payable:Vacation', True), + ('Liabilities:UnearnedIncome:Donations', False), ]) def test_which_accounts_required_on(hook, account, required): txn = testutil.Transaction(postings=[ - ('Assets:Checking', 25), + ('Assets:Checking', -25), (account, 25), ]) errors = list(hook.run(txn))