From 0742210fc7eaa54d8068bfd18414158dc9b33672 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Tue, 18 Aug 2026 16:35:11 -0700 Subject: Ruff cleanup --- tests/models/thl/test_ledger.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'tests/models/thl/test_ledger.py') 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: @@ -39,14 +43,6 @@ class TestLedgerTransaction: ) assert "Input should be less than 9223372036854775807" in str(cm.value) - with pytest.raises(ValidationError) as cm: - 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, -- cgit v1.2.3