diff options
Diffstat (limited to 'test_ledger_process.py')
-rw-r--r-- | test_ledger_process.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test_ledger_process.py b/test_ledger_process.py index fbbae1d..e5399d3 100644 --- a/test_ledger_process.py +++ b/test_ledger_process.py @@ -1,6 +1,6 @@ import unittest from decimal import Decimal -from exceptions import MismatchedTradeError +from exceptions import MismatchedTradeError, TradeNotFound from ledger_action import LedgerAction from ledger_process import LedgerProcess @@ -52,8 +52,8 @@ class TestLedgerProcess(unittest.TestCase): with self.assertRaises(MismatchedTradeError): self.lp.process_ledger([crypto_trade]) # EUR row missing - def test_unsupported_deposit(self): - """Test handling unsupported deposits.""" + def test_deposit_notfound(self): + """Test handling deposit with no matching withdraw.""" deposit = LedgerAction( type="deposit", asset="BTC", @@ -62,7 +62,9 @@ class TestLedgerProcess(unittest.TestCase): timestamp="2025-04-17 10:00:00", refid="67890", ) - self.lp.process_ledger([deposit]) + + with self.assertRaises(TradeNotFound): + self.lp.process_ledger([deposit]) if __name__ == "__main__": |