File diff 7156529ceb23 → 8516134687e8
tests/test_hook_ledger_entry.py
Show inline comments
...
 
@@ -182,6 +182,18 @@ def test_line1_not_custom_payee():
 
        "  Income:Donations  -15.00 USD",
 
    ]
 

	
 
def test_custom_date_missing():
 
    render_vars = template_vars('YY', '20.00')
 
    with pytest.raises(errors.UserInputConfigurationError):
 
        render_lines(render_vars, 'Custom Payee')
 

	
 
def test_custom_date_is_none():
 
    render_vars = template_vars('YZ', '25.00', other_vars={
 
        'custom_date': None,
 
    })
 
    with pytest.raises(errors.UserInputConfigurationError):
 
        render_lines(render_vars, 'Custom Payee')
 

	
 
@pytest.mark.parametrize('amount,expect_fee', [
 
    (40, 3),
 
    (80, 6),