@@ -192,3 +192,15 @@ def test_still_required_on_flagged_txn(hook):
('Income:Donations', -1000),
])
assert list(hook.run(txn))
@pytest.mark.parametrize('account,src_value', testutil.combine_values(
ACCOUNTS,
testutil.FIXME_VALUES,
))
def test_flagged_fixme_ok(hook, account, src_value):
txn = testutil.Transaction(flag='!', postings=[
(account, 200, {TEST_KEY: src_value}),
('Income:Donations', -200),
assert not list(hook.run(txn))
testutil.check_post_meta(txn, {TEST_KEY: src_value}, None)