@@ -189,6 +189,18 @@ def test_not_required_on_opening(hook):
def test_still_required_on_flagged_txn(hook):
txn = testutil.Transaction(flag='!', postings=[
('Assets:PayPal', 1000),
('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):
(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)