diff --git a/tests/test_client.py b/tests/test_client.py index c266b1b8..6cfd7173 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -712,7 +712,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No with pytest.raises(APITimeoutError): self.client.post( "/customers", - body=dict(email="example-customer@withorb.com", name="My Customer"), + body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -727,7 +727,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non with pytest.raises(APIStatusError): self.client.post( "/customers", - body=dict(email="example-customer@withorb.com", name="My Customer"), + body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -1416,7 +1416,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) with pytest.raises(APITimeoutError): await self.client.post( "/customers", - body=dict(email="example-customer@withorb.com", name="My Customer"), + body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -1431,7 +1431,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) with pytest.raises(APIStatusError): await self.client.post( "/customers", - body=dict(email="example-customer@withorb.com", name="My Customer"), + body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, )