diff --git a/tests/test_reports_ledger.py b/tests/test_reports_ledger.py index 6139a253b4653fd20fb5df2f488601b94be084a0..34b09a378d45c592647b3bedb9bbec95332fc687 100644 --- a/tests/test_reports_ledger.py +++ b/tests/test_reports_ledger.py @@ -34,6 +34,7 @@ _ledger_load = bc_loader.load_file(testutil.test_path('books/ledger.beancount')) DEFAULT_REPORT_SHEETS = [ 'Balance', 'Income', + 'Expenses:Payroll', 'Expenses', 'Equity', 'Assets:Receivable', @@ -42,7 +43,9 @@ DEFAULT_REPORT_SHEETS = [ 'Assets', 'Liabilities', ] -PROJECT_REPORT_SHEETS = DEFAULT_REPORT_SHEETS[:5] + [ +PROJECT_REPORT_SHEETS = [ + *DEFAULT_REPORT_SHEETS[:2], + *DEFAULT_REPORT_SHEETS[3:6], 'Assets:Prepaid', 'Liabilities:UnearnedIncome', 'Liabilities:Payable', @@ -402,6 +405,11 @@ def test_account_names_report(ledger_entries, accounts, report_kwargs): for account in iter_accounts(ledger_entries): if not account.startswith(accounts): ExpectedPostings.check_not_in_report(report.document, account) + # This account is reportable but has no postings + elif account == 'Expenses:Payroll': + ExpectedPostings.check_in_report( + report.document, account, START_DATE, STOP_DATE, txn_filter, + ) elif txn_filter is None: expected[account].check_report(report.document, START_DATE, STOP_DATE) else: