diff --git a/tests/test_meta_tax_implication.py b/tests/test_meta_tax_implication.py index 9c2aa31309bee6ce305d79a9cdd831ff78e919bb..520092db0fc82f4ec25202fafae3992a1e62cb54 100644 --- a/tests/test_meta_tax_implication.py +++ b/tests/test_meta_tax_implication.py @@ -137,9 +137,18 @@ def test_validation_only_in_date_range(hook, date, need_value): testutil.check_post_meta(txn, None, None) @pytest.mark.parametrize('src_value', INVALID_VALUES) -def test_flagged_txn_skipped(hook, src_value): +def test_flagged_txn_checked(hook, src_value): txn = testutil.Transaction(flag='!', **{TEST_KEY: src_value}, postings=[ ('Liabilities:Payable:Accounts', 25), ('Assets:Cash', -25), ]) + assert list(hook.run(txn)) + +@pytest.mark.parametrize('src_value', testutil.FIXME_VALUES) +def test_flagged_fixme_ok(hook, src_value): + txn = testutil.Transaction(flag='!', postings=[ + ('Liabilities:Payable:Accounts', 25), + ('Assets:Cash', -25, {TEST_KEY: src_value}), + ]) assert not list(hook.run(txn)) + testutil.check_post_meta(txn, None, {TEST_KEY: src_value})