File diff 89bbf8434732 → 29d4325c7abd
tests/test_reports_balance_sheet.py
Show inline comments
...
 
@@ -83,7 +83,7 @@ def income_expense_balances():
 
    ({'classification': 'Postage'}, 30),
 
    ({'classification': 'Services'}, 20),
 
    ({'classification': 'Nonexistent'}, None),
 
    ({'period': Period.OPENING, 'account': 'Income'}, '-9.60'),
 
    ({'period': Period.PRIOR, 'account': 'Income'}, '-9.60'),
 
    ({'period': Period.PERIOD, 'account': 'Expenses'}, 26),
 
    ({'fund': Fund.RESTRICTED, 'account': 'Income'}, -10),
 
    ({'fund': Fund.UNRESTRICTED, 'account': 'Expenses'}, 25),
...
 
@@ -91,10 +91,10 @@ def income_expense_balances():
 
    ({'post_type': 'fundraising'}, 20),
 
    ({'post_type': 'management'}, 10),
 
    ({'post_type': 'Nonexistent'}, None),
 
    ({'period': Period.OPENING, 'post_type': 'RBI'}, '-4.80'),
 
    ({'period': Period.PRIOR, 'post_type': 'RBI'}, '-4.80'),
 
    ({'fund': Fund.RESTRICTED, 'post_type': 'program'}, 10),
 
    ({'period': Period.PERIOD, 'fund': Fund.UNRESTRICTED, 'post_type': 'RBI'}, '-2.60'),
 
    ({'period': Period.OPENING, 'fund': Fund.RESTRICTED, 'post_type': 'program'}, '4.80'),
 
    ({'period': Period.PRIOR, 'fund': Fund.RESTRICTED, 'post_type': 'program'}, '4.80'),
 
    ({'period': Period.PERIOD, 'fund': Fund.RESTRICTED, 'post_type': 'ΓΈ'}, None),
 
])
 
def test_balance_total(income_expense_balances, kwargs, expected):