File diff be35f36d26ba → 6aadb740e619
tests/test_meta_receipt.py
Show inline comments
...
 
@@ -343,6 +343,28 @@ def test_fallback_on_zero_amount_postings(hook, test_acct, other_acct, value):
 
    ])
 
    assert not list(hook.run(txn))
 

	
 
@pytest.mark.parametrize('test_acct,other_acct', testutil.combine_values(
 
    ACCOUNTS,
 
    NOT_REQUIRED_ACCOUNTS,
 
))
 
def test_not_required_on_chargeback_txns(hook, test_acct, other_acct):
 
    if test_acct.required_types & PostType.DEBIT:
 
        check(hook, test_acct, other_acct, None,
 
              txn_meta={'tax-implication': 'Chargeback'},
 
              check_type=PostType.DEBIT,
 
        )
 

	
 
@pytest.mark.parametrize('test_acct,other_acct', testutil.combine_values(
 
    ACCOUNTS,
 
    NOT_REQUIRED_ACCOUNTS,
 
))
 
def test_not_required_on_chargeback_posts(hook, test_acct, other_acct):
 
    if test_acct.required_types & PostType.DEBIT:
 
        check(hook, test_acct, other_acct, None,
 
              post_meta={'tax-implication': 'Chargeback'},
 
              check_type=PostType.DEBIT,
 
        )
 

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