@@ -198,6 +198,16 @@ def test_still_required_on_flagged_txn(hook, src_value):
('Assets:Cash', -25),
('Expenses:General', 25),
])
errors = list(hook.run(txn))
assert errors
testutil.check_post_meta(txn, None, None)
@pytest.mark.parametrize('src_value', testutil.FIXME_VALUES)
def test_flagged_fixme_ok(hook, src_value):
txn = testutil.Transaction(flag='!', postings=[
('Expenses:General', 25, {TEST_KEY: src_value}),
assert not errors
testutil.check_post_meta(txn, None, {TEST_KEY: src_value})