diff --git a/tests/test_meta_project.py b/tests/test_meta_project.py index ae5d3f0286cfbd6166dcbfb4fde33781bb81d059..5c372dcccf5756ebac80640d709f158bccbdfc54 100644 --- a/tests/test_meta_project.py +++ b/tests/test_meta_project.py @@ -86,13 +86,17 @@ def test_invalid_values_on_transactions(hook, src_value): testutil.check_post_meta(txn, None, None) @pytest.mark.parametrize('account,required', [ - ('Accrued:AccountsReceivable', True), ('Assets:Cash', False), - ('Equity:Opening-Balances', False), + ('Assets:Receivable:Accounts', True), + ('Assets:Receivable:Loans', True), + ('Equity:OpeningBalance', False), ('Expenses:General', True), ('Income:Donations', True), ('Liabilities:CreditCard', False), - ('UnearnedIncome:Donations', True), + ('Liabilities:Payable:Accounts', True), + # We do want a "project" for Lia:Pay:Vacation but it has a default value + ('Liabilities:Payable:Vacation', False), + ('Liabilities:UnearnedIncome:Donations', True), ]) def test_which_accounts_required_on(hook, account, required): txn = testutil.Transaction(postings=[ @@ -103,9 +107,9 @@ def test_which_accounts_required_on(hook, account, required): assert required == any(errors) @pytest.mark.parametrize('account', [ - 'Accrued:VacationPayable', 'Expenses:Payroll:Salary', 'Expenses:Payroll:Tax', + 'Liabilities:Payable:Vacation', ]) def test_default_values(hook, account): txn = testutil.Transaction(postings=[ @@ -126,7 +130,7 @@ def test_default_values(hook, account): def test_default_value_set_in_date_range(hook, date, required): txn = testutil.Transaction(date=date, postings=[ ('Expenses:Payroll:Benefits', 25), - ('Accrued:VacationPayable', -25), + ('Liabilities:Payable:Vacation', -25), ]) errors = list(hook.run(txn)) assert not errors