summaryrefslogtreecommitdiff
path: root/test_ledger_process.py
diff options
context:
space:
mode:
authoruvok2025-04-18 17:36:03 +0200
committeruvok2025-04-18 17:36:03 +0200
commitb5ceacdb258b9f1e8ab2b24dc8da7e3a0521e0e6 (patch)
tree717560ce46b9f1d0b9a10322c32253134c9862cc /test_ledger_process.py
parent63b4781b5bbff801fc08f71781e937827273a3fa (diff)
Add custom type
Diffstat (limited to 'test_ledger_process.py')
-rw-r--r--test_ledger_process.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_ledger_process.py b/test_ledger_process.py
index 092619a..fbbae1d 100644
--- a/test_ledger_process.py
+++ b/test_ledger_process.py
@@ -1,5 +1,6 @@
import unittest
from decimal import Decimal
+from exceptions import MismatchedTradeError
from ledger_action import LedgerAction
from ledger_process import LedgerProcess
@@ -48,7 +49,7 @@ class TestLedgerProcess(unittest.TestCase):
timestamp="2025-04-17 10:00:00",
refid="12345",
)
- with self.assertRaises(ValueError):
+ with self.assertRaises(MismatchedTradeError):
self.lp.process_ledger([crypto_trade]) # EUR row missing
def test_unsupported_deposit(self):