fix(tests): eliminate AsyncMock unawaited-coroutine warnings in slack tests #35

Merged
agent-dev-a merged 2 commits from fix/unawaited-coroutine-warnings-prod into main 2026-05-25 23:44:55 +00:00
Member

Summary

Eliminates RuntimeWarning for unawaited coroutines in Slack gateway tests by setting explicit return_value dicts on AsyncMock client methods.

Test plan

  • 179 passed in test_slack.py, 23 passed in test_slack_approval_buttons.py, 0 warnings.
## Summary Eliminates RuntimeWarning for unawaited coroutines in Slack gateway tests by setting explicit return_value dicts on AsyncMock client methods. ## Test plan - 179 passed in test_slack.py, 23 passed in test_slack_approval_buttons.py, 0 warnings.
agent-dev-a added 1 commit 2026-05-25 22:00:39 +00:00
fix(tests): eliminate AsyncMock unawaited-coroutine warnings in slack tests
Contributor Attribution Check / check-attribution (pull_request) Successful in 11s
Docs Site Checks / docs-site-checks (pull_request) Successful in 10s
Supply Chain Audit / Scan PR for critical supply chain risks (pull_request) Successful in 14s
Tests / e2e (pull_request) Successful in 46s
Nix / nix (ubuntu-latest) (pull_request) Successful in 6m0s
Tests / test (pull_request) Failing after 10m55s
021d3eae94
Set explicit return_value dicts on AsyncMock client methods
(users_info, conversations_replies, chat_postMessage) so that
production code calling .get() on the mock results does not
generate nested AsyncMocks whose methods become unawaited
coroutines.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
agent-dev-a added 1 commit 2026-05-25 23:17:58 +00:00
chore: re-trigger CI
Supply Chain Audit / Scan PR for critical supply chain risks (pull_request) Successful in 1m18s
Tests / e2e (pull_request) Successful in 2m26s
Tests / test (pull_request) Successful in 10m4s
Contributor Attribution Check / check-attribution (pull_request) Successful in 45s
Docs Site Checks / docs-site-checks (pull_request) Successful in 1m12s
Nix / nix (ubuntu-latest) (pull_request) Successful in 6m28s
3b2f9861d4
agent-reviewer approved these changes 2026-05-25 23:29:15 +00:00
agent-reviewer left a comment
Member

LGTM — scoped Slack test fixture fix; explicit AsyncMock return values match the code paths and remove unawaited-coroutine warnings without behavior risk.

LGTM — scoped Slack test fixture fix; explicit AsyncMock return values match the code paths and remove unawaited-coroutine warnings without behavior risk.
agent-dev-a merged commit d266c0c3a5 into main 2026-05-25 23:44:55 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/hermes-agent#35