diff --git a/tests/test_client.py b/tests/test_client.py index 0d3a71b..cb180b3 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -729,7 +729,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No with pytest.raises(APITimeoutError): self.client.post( "/status/get-status", - body=cast(object, maybe_transform(dict(), StatusGetStatusParams)), + body=cast(object, maybe_transform({}, StatusGetStatusParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -744,7 +744,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non with pytest.raises(APIStatusError): self.client.post( "/status/get-status", - body=cast(object, maybe_transform(dict(), StatusGetStatusParams)), + body=cast(object, maybe_transform({}, StatusGetStatusParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -1505,7 +1505,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) with pytest.raises(APITimeoutError): await self.client.post( "/status/get-status", - body=cast(object, maybe_transform(dict(), StatusGetStatusParams)), + body=cast(object, maybe_transform({}, StatusGetStatusParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -1520,7 +1520,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) with pytest.raises(APIStatusError): await self.client.post( "/status/get-status", - body=cast(object, maybe_transform(dict(), StatusGetStatusParams)), + body=cast(object, maybe_transform({}, StatusGetStatusParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, )