diff --git a/tests/test_meta_approval.py b/tests/test_meta_approval.py index 5d1778555ae79b893fe6831aba08a7fb34bd66c6..76179ba52551f7f52f09e662f3ca39481dfc2087 100644 --- a/tests/test_meta_approval.py +++ b/tests/test_meta_approval.py @@ -180,3 +180,10 @@ def test_approval_required_for_partial_transfer(hook): ]) actual = {error.message for error in hook.run(txn)} assert actual == {"Assets:Checking missing {}".format(TEST_KEY)} + +def test_not_required_on_flagged(hook): + txn = testutil.Transaction(flag='!', postings=[ + ('Assets:Checking', -25), + ('Liabilities:Payable:Accounts', 25), + ]) + assert not list(hook.run(txn))