@@ -144,3 +144,14 @@ def test_missing_invoice(hook, acct1, acct2):
def test_not_required_on_opening(hook):
txn = testutil.OpeningBalance()
assert not list(hook.run(txn))
@pytest.mark.parametrize('acct1,acct2', testutil.combine_values(
REQUIRED_ACCOUNTS,
NON_REQUIRED_ACCOUNTS,
))
def test_not_required_on_flagged(acct1, acct2, hook):
txn = testutil.Transaction(flag='!', postings=[
(acct1, 25),
(acct2, -25),
])