diff --git a/tests/test_meta_payable_documentation.py b/tests/test_meta_payable_documentation.py index 4b6a4faa284b073113eba5084a85a703f286ca6c..7cabd8ecc5f2f84e528cfaa4f80c77b64e72d4d9 100644 --- a/tests/test_meta_payable_documentation.py +++ b/tests/test_meta_payable_documentation.py @@ -163,3 +163,11 @@ def test_paid_accts_not_checked(hook): def test_does_not_apply_to_other_accounts(hook, account): meta = seed_meta() check(hook, None, account, post_meta=meta) + +def test_not_required_on_opening(hook): + txn = testutil.Transaction(postings=[ + ('Liabilities:Payable:Accounts', -15), + ('Liabilities:Payable:Vacation', -25), + (next(testutil.OPENING_EQUITY_ACCOUNTS), 40), + ]) + assert not list(hook.run(txn))