Fix test suite warnings (RuntimeWarning, DeprecationWarning) #28
Reference in New Issue
Block a user
Delete Branch "fix/test-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Eliminates all critical warnings from the test suite by fixing deprecated APIs and incorrect test mocks.
Warnings Fixed:
Changes
1. Fix
datetime.utcnow()Deprecation (anthropic_oauth.py:458)Before:
After:
Rationale:
datetime.utcnow()deprecated in Python 3.12+2. Fix AsyncMock Test Fixture (test_agent_loop_tool_result.py:31)
Before:
After:
Rationale:
SessionManager.save()is synchronoustest_legacy_string_result,test_tool_result_output_and_error,test_tool_result_with_base64_image,test_cli_result_handlingTest Results
Before:
After:
Impact
Note
The PytestCacheWarning persists because
.pytest_cache/is owned by root. This is cosmetic only and can be eliminated by running:🤖 Generated with Claude Code