| 1301 | class TestAsyncAnthropic: |
| 1302 | @pytest.mark.respx(base_url=base_url) |
| 1303 | async def test_raw_response(self, respx_mock: MockRouter, async_client: AsyncAnthropic) -> None: |
| 1304 | respx_mock.post("/foo").mock(return_value=httpx2.Response(200, json={"foo": "bar"})) |
| 1305 | |
| 1306 | response = await async_client.post("/foo", cast_to=httpx2.Response) |
| 1307 | assert response.status_code == 200 |
| 1308 | assert isinstance(response, httpx2.Response) |
| 1309 | assert response.json() == {"foo": "bar"} |
| 1310 | |
| 1311 | @pytest.mark.respx(base_url=base_url) |
| 1312 | async def test_raw_response_for_binary(self, respx_mock: MockRouter, async_client: AsyncAnthropic) -> None: |