Answer the next `len(responses)` Messages API requests with `responses`, in order. An exception is raised in place of a response.
(respx_mock: MockRouter, *responses: httpx2.Response | Exception)
| 285 | |
| 286 | |
| 287 | def queue_responses(respx_mock: MockRouter, *responses: httpx2.Response | Exception) -> Route: |
| 288 | """Answer the next `len(responses)` Messages API requests with `responses`, in order. An exception is raised in |
| 289 | place of a response.""" |
| 290 | return respx_mock.post("/v1/messages").mock(side_effect=list(responses)) |
| 291 | |
| 292 | |
| 293 | def message_response( |