diff options
| author | Max Nanis | 2026-08-18 16:35:11 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-08-18 16:35:11 -0700 |
| commit | 0742210fc7eaa54d8068bfd18414158dc9b33672 (patch) | |
| tree | 5f42b671ccbd9cc44f1f62229cac16a5e455317d /tests/models/thl/test_ledger.py | |
| parent | 6b4f8d6b8700a65bdf74beb3d95c969a81464a56 (diff) | |
| download | generalresearch-0742210fc7eaa54d8068bfd18414158dc9b33672.tar.gz generalresearch-0742210fc7eaa54d8068bfd18414158dc9b33672.zip | |
Ruff cleanup
Diffstat (limited to 'tests/models/thl/test_ledger.py')
| -rw-r--r-- | tests/models/thl/test_ledger.py | 18 |
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) |
