Fix test suite warnings (RuntimeWarning, DeprecationWarning) #30

Open
code-server wants to merge 0 commits from fix/test-warnings into main
Collaborator

Summary

  • Replace deprecated datetime.datetime.utcnow() with datetime.datetime.now(datetime.UTC) in anthropic_oauth.py
  • Fix session_mgr.save mock: use MagicMock() instead of AsyncMock() since save is synchronous in production

Test plan

  • Run pytest — no new warnings from these two locations
  • Existing tests pass without changes
## Summary - Replace deprecated `datetime.datetime.utcnow()` with `datetime.datetime.now(datetime.UTC)` in `anthropic_oauth.py` - Fix `session_mgr.save` mock: use `MagicMock()` instead of `AsyncMock()` since `save` is synchronous in production ## Test plan - [ ] Run `pytest` — no new warnings from these two locations - [ ] Existing tests pass without changes
All checks were successful
Build Nanobot OAuth / build (pull_request) Successful in 45s
Required
Details
Build Nanobot OAuth / cleanup (pull_request) Has been skipped
This branch is already included in the target branch. There is nothing to merge.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/test-warnings:fix/test-warnings
git checkout fix/test-warnings
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wylab/nanobot#30