File diff 887102ea9208 → f9411e0ffe79
tests/test_meta_receipt.py
Show inline comments
...
 
@@ -344,6 +344,24 @@ def test_fallback_on_zero_amount_postings(hook, test_pair, other_acct, value):
 
    ])
 
    assert not list(hook.run(txn))
 

	
 
@pytest.mark.parametrize('test_acct', (
 
    acct for acct in ACCOUNTS
 
    if acct.name.startswith('Assets:')
 
    and acct.required_types & PostType.CREDIT
 
))
 
def test_not_required_on_interest(hook, test_acct):
 
    check(hook, test_acct, 'Income:Interest', None,
 
          check_type=PostType.CREDIT)
 

	
 
@pytest.mark.parametrize('test_acct', (
 
    acct for acct in ACCOUNTS
 
    if acct.name.startswith('Assets:')
 
    and acct.required_types & PostType.DEBIT
 
))
 
def test_required_on_reverse_interest(hook, test_acct):
 
    check(hook, test_acct, 'Income:Interest', {test_acct.missing_message()},
 
          check_type=PostType.DEBIT)
 

	
 
@pytest.mark.parametrize('test_acct,equity_acct', testutil.combine_values(
 
    ACCOUNTS,
 
    testutil.OPENING_EQUITY_ACCOUNTS,