diff --git a/tests/test_templates.py b/tests/test_templates.py index 38fcfad635cd1e8b706a1c38e172e8593408c676..3a3bf641103127b01cff41261d1fd1571db6abaa 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -126,6 +126,19 @@ def test_zeroed_account_skipped(): " Income:Donations -99.00 USD", ] +def test_zeroed_account_last(): + render_vars = template_vars('JJ', '90.00', other_vars={ + 'item_sales': decimal.Decimal(0), + }) + lines = render_lines(render_vars, 'Multisplit') + assert lines == [ + "", + "2015/03/14 JJ", + " Assets:Cash 90.00 USD", + " Income:Sales -90.00 USD", + " ; :NonItem:", + ] + def test_custom_payee_line(): render_vars = template_vars('ZZ', '10.00', other_vars={ 'custom_date': datetime.date(2014, 2, 13),