@@ -210,6 +210,10 @@ def test_not_required_on_opening(hook):
txn = testutil.Transaction(postings=[
('Assets:Receivable:Accounts', 100),
('Assets:Receivable:Loans', 200),
(next(testutil.OPENING_EQUITY_ACCOUNTS), -300),
])
assert not list(hook.run(txn))
def test_not_required_on_flagged(hook):
post_meta = seed_meta()
check(hook, None, txn_meta={'flag': '!'}, post_meta=post_meta)