Skip to content

Commit

Permalink
Add failure message to assert statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Jan 30, 2025
1 parent bc7fc2c commit e8bb3c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ async def test_send_text(self, client: GeminiRealtimeClient) -> None:

# check that we received the expected SessionCreated and AudioDelta events
calls_args = [arg_list.args for arg_list in mock.call_args_list]
assert isinstance(calls_args[0][0], SessionCreated)
assert isinstance(calls_args[0][0], SessionCreated), f"Type of calls_args[0][0] is {type(calls_args[0][0])}"

assert isinstance(calls_args[-1][0], AudioDelta)
assert isinstance(calls_args[-1][0], AudioDelta), f"Type of calls_args[-1][0] is {type(calls_args[-1][0])}"

0 comments on commit e8bb3c3

Please sign in to comment.