aboutsummaryrefslogtreecommitdiff
path: root/tests/models/thl/test_ledger.py
diff options
context:
space:
mode:
authorstuppie2026-08-18 19:09:22 -0600
committerstuppie2026-08-18 19:09:22 -0600
commit28729d407470407bbc78bc7fb6574953b2f03f59 (patch)
tree698a5820105f0ff02c93b5205faee7747fcb6ad9 /tests/models/thl/test_ledger.py
parent4d4fce08f3a4c9dbd78fdacf3193b345cf982da3 (diff)
parent0742210fc7eaa54d8068bfd18414158dc9b33672 (diff)
downloadgeneralresearch-28729d407470407bbc78bc7fb6574953b2f03f59.tar.gz
generalresearch-28729d407470407bbc78bc7fb6574953b2f03f59.zip
Merge branch 'master' of ssh://code.g-r-l.com/generalresearch
Diffstat (limited to 'tests/models/thl/test_ledger.py')
-rw-r--r--tests/models/thl/test_ledger.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/tests/models/thl/test_ledger.py b/tests/models/thl/test_ledger.py
index d706357..257de3c 100644
--- a/tests/models/thl/test_ledger.py
+++ b/tests/models/thl/test_ledger.py
@@ -1,12 +1,16 @@
from datetime import datetime, timezone
-from decimal import Decimal
from uuid import uuid4
import pytest
from pydantic import ValidationError
-from generalresearch.models.thl.ledger import LedgerAccount, Direction, AccountType
-from generalresearch.models.thl.ledger import LedgerTransaction, LedgerEntry
+from generalresearch.models.thl.ledger import (
+ AccountType,
+ Direction,
+ LedgerAccount,
+ LedgerEntry,
+ LedgerTransaction,
+)
class TestLedgerTransaction:
@@ -43,14 +47,6 @@ class TestLedgerTransaction:
LedgerEntry(
direction=Direction.CREDIT,
account_uuid="3f3735eaed264c2a9f8a114934afa121",
- amount=Decimal("1"),
- )
- assert "Input should be a valid integer" in str(cm.value)
-
- with pytest.raises(ValidationError) as cm:
- LedgerEntry(
- direction=Direction.CREDIT,
- account_uuid="3f3735eaed264c2a9f8a114934afa121",
amount=1.2,
)
assert "Input should be a valid integer" in str(cm.value)