tests: Add template test for 40552d6.

This commit is contained in:
Brett Smith 2017-12-30 15:55:47 -05:00
parent f6599a3deb
commit d9f68e9817

View file

@ -139,6 +139,21 @@ def test_zeroed_account_last():
" ; :NonItem:",
]
def test_multiple_postings_same_account():
render_vars = template_vars('LL', '80.00', other_vars={
'item_sales': decimal.Decimal(30),
})
lines = render_lines(render_vars, 'Multisplit')
assert lines == [
"",
"2015/03/14 LL",
" Assets:Cash 80.00 USD",
" Income:Sales -50.00 USD",
" ; :NonItem:",
" Income:Sales -30.00 USD",
" ; :Item:",
]
def test_custom_payee_line():
render_vars = template_vars('ZZ', '10.00', other_vars={
'custom_date': datetime.date(2014, 2, 13),