aboutsummaryrefslogtreecommitdiff
path: root/tests/models/thl/test_payout_format.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_payout_format.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_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):