Fix test suite warnings (RuntimeWarning, DeprecationWarning) #28
@@ -455,7 +455,7 @@ class AnthropicOAuthProvider(LLMProvider):
|
||||
import datetime
|
||||
import os
|
||||
header_dump = {
|
||||
"timestamp": datetime.datetime.utcnow().isoformat(),
|
||||
"timestamp": datetime.datetime.now(datetime.UTC).isoformat(),
|
||||
"status_code": response.status_code,
|
||||
"model": payload.get("model"),
|
||||
"headers": dict(response.headers),
|
||||
|
||||
@@ -28,7 +28,7 @@ def mock_session_manager():
|
||||
"messages": [],
|
||||
"metadata": {},
|
||||
})
|
||||
session_mgr.save = AsyncMock()
|
||||
session_mgr.save = MagicMock() # Synchronous in production, not async
|
||||
return session_mgr
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user