From 6b4f8d6b8700a65bdf74beb3d95c969a81464a56 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Tue, 18 Aug 2026 13:14:45 -0700 Subject: build ignore, py-utils replace, typing with Ruff --- tests/models/thl/test_payout_format.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/models/thl/test_payout_format.py') diff --git a/tests/models/thl/test_payout_format.py b/tests/models/thl/test_payout_format.py index dc91f39..83fde25 100644 --- a/tests/models/thl/test_payout_format.py +++ b/tests/models/thl/test_payout_format.py @@ -2,8 +2,8 @@ import pytest from pydantic import BaseModel from generalresearch.models.thl.payout_format import ( - PayoutFormatType, PayoutFormatField, + PayoutFormatType, format_payout_format, ) @@ -20,16 +20,16 @@ class TestPayoutFormat: PayoutFormatTestClass(payout_format="${payout/100:.2f}") # invalid - with pytest.raises(expected_exception=Exception) as e: + with pytest.raises(expected_exception=ValueError): PayoutFormatTestClass(payout_format="{payout10:,.0f} Points") - with pytest.raises(expected_exception=Exception) as e: + with pytest.raises(expected_exception=ValueError): PayoutFormatTestClass(payout_format="payout:,.0f} Points") - with pytest.raises(expected_exception=Exception): + with pytest.raises(expected_exception=ValueError): PayoutFormatTestClass(payout_format="payout") - with pytest.raises(expected_exception=Exception): + with pytest.raises(expected_exception=ValueError): PayoutFormatTestClass(payout_format="{payout;import sys:.0f}") def test_payout_format(self): -- cgit v1.2.3