You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tests): replace Mock() with AsyncMock() in test_voice_auth.py _FakeVoiceService #753
18 tests in `tests/unit/test_voice_auth.py` all fail with:
```
TypeError: An asyncio.Future, a coroutine or an awaitable is required
```
The `_FakeVoiceService` stub uses `Mock()` for `get_session`, `remove_session`, and `create_session`, which are `async def` methods. They must use `AsyncMock()` instead.
Context
Discovered via full test suite run on 2026-05-10. The fix is mechanical — three one-line changes in a single file. No production code is affected.
Acceptance Criteria
In `tests/unit/test_voice_auth.py`, change `Mock()` to `AsyncMock()` for `get_session`, `remove_session`, and `create_session` in `_FakeVoiceService`
This is already fixed. The AsyncMock replacements for get_session, remove_session, and create_session in _FakeVoiceService were applied in commit 32e06c8 (PR #714, shipped 2026-05-08) as part of greening the full unit-test suite. All 19 tests in tests/unit/test_voice_auth.py currently pass.
Activity
vybe commentedon May 10, 2026
/claim
github-actions commentedon May 10, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/753-<short-slug>Fixes #753vybe commentedon May 10, 2026
This is already fixed. The
AsyncMockreplacements forget_session,remove_session, andcreate_sessionin_FakeVoiceServicewere applied in commit32e06c8(PR #714, shipped 2026-05-08) as part of greening the full unit-test suite. All 19 tests intests/unit/test_voice_auth.pycurrently pass.Merge origin/dev into fix/ent629-agent-reach