Add test coverage for send_voice_assistant_event

This commit is contained in:
J. Nick Koston 2023-11-26 16:43:19 -06:00
parent 9866a0fa84
commit 9fd213a7f6
No known key found for this signature in database
1 changed files with 11 additions and 0 deletions

View File

@ -1688,3 +1688,14 @@ async def test_send_voice_assistant_event(auth_client: APIClient) -> None:
],
)
)
send.reset_mock()
auth_client.send_voice_assistant_event(
VoiceAssistantEventModelType.VOICE_ASSISTANT_ERROR, None
)
send.assert_called_once_with(
VoiceAssistantEventResponse(
event_type=VoiceAssistantEventModelType.VOICE_ASSISTANT_ERROR.value,
data=[],
)
)