Skip to content

Commit

Permalink
added testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer-639 committed Apr 10, 2024
1 parent 6ccd3ea commit 7d09936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyluca/tests/test_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def test_get_accounts_balance_as_of(self):

def test_account_ledger(self):
ledger = AccountLedger("Savings", BalanceType.CREDIT)
self.assertEqual(ledger.get_balance(), 0)
ledger.add_entry(sl_no=1, date=datetime(2024, 3, 1), dr_amount=0, cr_amount=20000, narration="salary credited",
event_id=None)
self.assertEqual(ledger.get_balance(), 20000)
Expand Down

0 comments on commit 7d09936

Please sign in to comment.