aboutsummaryrefslogtreecommitdiff
path: root/tests/models/thl/test_user.py
diff options
context:
space:
mode:
authorMax Nanis2026-08-24 16:04:11 -0700
committerMax Nanis2026-08-24 16:04:11 -0700
commit979efd01b0c61d493d1fef3dff9885f5d38a8975 (patch)
tree1f56c05b4736636f0f5f82678bc06994bd0a4403 /tests/models/thl/test_user.py
parente2c5de703be45746bacaea4136f24440ff5a291c (diff)
downloadgeneralresearch-979efd01b0c61d493d1fef3dff9885f5d38a8975.tar.gz
generalresearch-979efd01b0c61d493d1fef3dff9885f5d38a8975.zip
ruff + fix filepath_adapter
Diffstat (limited to 'tests/models/thl/test_user.py')
-rw-r--r--tests/models/thl/test_user.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/models/thl/test_user.py b/tests/models/thl/test_user.py
index aafce68..e0ba6f8 100644
--- a/tests/models/thl/test_user.py
+++ b/tests/models/thl/test_user.py
@@ -392,7 +392,7 @@ class TestUserCreated:
from generalresearch.models.thl.user import User
with pytest.raises(ValueError) as cm:
- User(user_id=self.user_id, created=datetime.now(tz=None))
+ User(user_id=self.user_id, created=datetime.now(tz=None)) # noqa
assert "1 validation error for User" in str(cm.value)
assert "Input should have timezone info" in str(cm.value)
@@ -401,7 +401,7 @@ class TestUserCreated:
user = User(user_id=self.user_id)
with pytest.raises(ValueError) as cm:
- user.created = datetime.now(tz=None)
+ user.created = datetime.now(tz=None) # noqa
assert "1 validation error for User" in str(cm.value)
assert "Input should have timezone info" in str(cm.value)
@@ -453,7 +453,7 @@ class TestUserLastSeen:
from generalresearch.models.thl.user import User
with pytest.raises(ValueError) as cm:
- User(user_id=self.user_id, last_seen=datetime.now(tz=None))
+ User(user_id=self.user_id, last_seen=datetime.now(tz=None)) # noqa
assert "1 validation error for User" in str(cm.value)
assert "Input should have timezone info" in str(cm.value)
@@ -462,7 +462,7 @@ class TestUserLastSeen:
user = User(user_id=self.user_id)
with pytest.raises(ValueError) as cm:
- user.last_seen = datetime.now(tz=None)
+ user.last_seen = datetime.now(tz=None) # noqa
assert "1 validation error for User" in str(cm.value)
assert "Input should have timezone info" in str(cm.value)