aboutsummaryrefslogtreecommitdiff
path: root/tests/models/thl/test_payout_format.py
diff options
context:
space:
mode:
authorMax Nanis2026-08-18 13:14:45 -0700
committerMax Nanis2026-08-18 13:14:45 -0700
commit6b4f8d6b8700a65bdf74beb3d95c969a81464a56 (patch)
tree09c0b32c8915f4ffa5c5e02222c49cbf591f8588 /tests/models/thl/test_payout_format.py
parentc6f7ad8baaa8e0e22dfcefc763f4065faf6de507 (diff)
downloadgeneralresearch-6b4f8d6b8700a65bdf74beb3d95c969a81464a56.tar.gz
generalresearch-6b4f8d6b8700a65bdf74beb3d95c969a81464a56.zip
build ignore, py-utils replace, typing with Ruff
Diffstat (limited to 'tests/models/thl/test_payout_format.py')
-rw-r--r--tests/models/thl/test_payout_format.py10
1 files changed, 5 insertions, 5 deletions
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):