tests: Add template test for 40552d6
.
This commit is contained in:
parent
f6599a3deb
commit
d9f68e9817
1 changed files with 15 additions and 0 deletions
|
@ -139,6 +139,21 @@ def test_zeroed_account_last():
|
||||||
" ; :NonItem:",
|
" ; :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():
|
def test_custom_payee_line():
|
||||||
render_vars = template_vars('ZZ', '10.00', other_vars={
|
render_vars = template_vars('ZZ', '10.00', other_vars={
|
||||||
'custom_date': datetime.date(2014, 2, 13),
|
'custom_date': datetime.date(2014, 2, 13),
|
||||||
|
|
Loading…
Reference in a new issue