From 94360e920663fd98e18fd86be1ced9e7f34547e1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 14 Feb 2025 04:37:10 +0000 Subject: [PATCH] chore(internal): update client tests --- tests/test_client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"}}, )