diff options
| author | Max Nanis | 2026-08-18 13:14:45 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-08-18 13:14:45 -0700 |
| commit | 6b4f8d6b8700a65bdf74beb3d95c969a81464a56 (patch) | |
| tree | 09c0b32c8915f4ffa5c5e02222c49cbf591f8588 /tests/models/thl/test_payout_format.py | |
| parent | c6f7ad8baaa8e0e22dfcefc763f4065faf6de507 (diff) | |
| download | generalresearch-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.py | 10 |
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): |
