summaryrefslogtreecommitdiff
path: root/test_ledger_process.py
diff options
context:
space:
mode:
authoruvok2025-04-18 18:07:48 +0200
committeruvok2025-04-18 18:07:48 +0200
commit2000ad14e7b83b9c2e565b23dae8ea4353b755df (patch)
tree33ef586528a590556a4d5d280dacb9c72bf65f43 /test_ledger_process.py
parent47dea4347bb2f60347d0ed2ae5f4f1ea9d8c1b83 (diff)
... Check fee as well
Diffstat (limited to 'test_ledger_process.py')
-rw-r--r--test_ledger_process.py7
1 files changed, 4 insertions, 3 deletions
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__":