aboutsummaryrefslogtreecommitdiff
path: root/tests/models/thl/test_user.py
diff options
context:
space:
mode:
authorMax Nanis2026-08-18 16:35:11 -0700
committerMax Nanis2026-08-18 16:35:11 -0700
commit0742210fc7eaa54d8068bfd18414158dc9b33672 (patch)
tree5f42b671ccbd9cc44f1f62229cac16a5e455317d /tests/models/thl/test_user.py
parent6b4f8d6b8700a65bdf74beb3d95c969a81464a56 (diff)
downloadgeneralresearch-0742210fc7eaa54d8068bfd18414158dc9b33672.tar.gz
generalresearch-0742210fc7eaa54d8068bfd18414158dc9b33672.zip
Ruff cleanup
Diffstat (limited to 'tests/models/thl/test_user.py')
-rw-r--r--tests/models/thl/test_user.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/models/thl/test_user.py b/tests/models/thl/test_user.py
index 25af694..943ae8e 100644
--- a/tests/models/thl/test_user.py
+++ b/tests/models/thl/test_user.py
@@ -101,11 +101,6 @@ class TestUserProductID:
assert "1 validation error for User" in str(cm.value)
assert "Input should be a valid string" in str(cm.value)
- with pytest.raises(expected_exception=ValueError) as cm:
- User(user_id=self.user_id, product_id=Decimal("0"))
- assert "1 validation error for User" in str(cm.value)
- assert "Input should be a valid string" in str(cm.value)
-
def test_empty(self):
from generalresearch.models.thl.user import User
@@ -121,8 +116,8 @@ class TestUserProductID:
product_id = uuid4().hex[:31]
with pytest.raises(expected_exception=ValueError) as cm:
User(user_id=self.user_id, product_id=product_id)
- assert "1 validation error for User", str(cm.value)
- assert "String should have at least 32 characters", str(cm.value)
+ assert "1 validation error for User" in str(cm.value)
+ assert "String should have at least 32 characters" in str(cm.value)
product_id = uuid4().hex * 2
with pytest.raises(ValueError) as cm: