From b5ceacdb258b9f1e8ab2b24dc8da7e3a0521e0e6 Mon Sep 17 00:00:00 2001 From: uvok Date: Fri, 18 Apr 2025 17:36:03 +0200 Subject: Add custom type --- test_ledger_process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test_ledger_process.py') 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): -- cgit v1.2.3