From 2000ad14e7b83b9c2e565b23dae8ea4353b755df Mon Sep 17 00:00:00 2001 From: uvok Date: Fri, 18 Apr 2025 18:07:48 +0200 Subject: ... Check fee as well --- test_ledger_process.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test_ledger_process.py') diff --git a/test_ledger_process.py b/test_ledger_process.py index 0dc58b8..274060f 100644 --- a/test_ledger_process.py +++ b/test_ledger_process.py @@ -89,8 +89,9 @@ class TestLedgerProcess(unittest.TestCase): withdrawal = LedgerAction( type="withdrawal", asset="BTC", - amount=Decimal("-0.099"), - fee=Decimal("0.00"), + # already includes removed fee + amount=Decimal("-0.098"), + fee=Decimal("0.001"), timestamp="2025-04-17 12:00:00", refid="67890", ) @@ -103,7 +104,7 @@ class TestLedgerProcess(unittest.TestCase): ) self.assertEqual(len(self.lp.external_wallet["BTC"]), 1) self.assertEqual( - self.lp.external_wallet["BTC"].get_remaining_amount(), Decimal("0.099") + self.lp.external_wallet["BTC"].get_remaining_amount(), Decimal("0.098") ) if __name__ == "__main__": -- cgit v1.2.3