Fix test suite warnings (RuntimeWarning, DeprecationWarning) #28

Merged
code-server merged 1 commits from fix/test-warnings into main 2026-03-06 06:36:12 +01:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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),
+1 -1
View File
@@ -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