| 1241 | class TestAsyncAnthropic: |
| 1242 | @pytest.mark.respx(base_url=base_url) |
| 1243 | async def test_raw_response(self, respx_mock: MockRouter, async_client: AsyncAnthropic) -> None: |
| 1244 | respx_mock.post("/foo").mock(return_value=httpx.Response(200, json={"foo": "bar"})) |
| 1245 | |
| 1246 | response = await async_client.post("/foo", cast_to=httpx.Response) |
| 1247 | assert response.status_code == 200 |
| 1248 | assert isinstance(response, httpx.Response) |
| 1249 | assert response.json() == {"foo": "bar"} |
| 1250 | |
| 1251 | @pytest.mark.respx(base_url=base_url) |
| 1252 | async def test_raw_response_for_binary(self, respx_mock: MockRouter, async_client: AsyncAnthropic) -> None: |