From 7b05b94aa2a095f34f5ca98460dd2d8785bb0723 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 14 Feb 2025 03:47:18 +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 b6dadcf..c3fd3ca 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -744,7 +744,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No with pytest.raises(APITimeoutError): self.client.post( "/gitpod.v1.IdentityService/GetAuthenticatedIdentity", - body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)), + body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -759,7 +759,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non with pytest.raises(APIStatusError): self.client.post( "/gitpod.v1.IdentityService/GetAuthenticatedIdentity", - body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)), + body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -1544,7 +1544,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) with pytest.raises(APITimeoutError): await self.client.post( "/gitpod.v1.IdentityService/GetAuthenticatedIdentity", - body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)), + body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, ) @@ -1559,7 +1559,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) with pytest.raises(APIStatusError): await self.client.post( "/gitpod.v1.IdentityService/GetAuthenticatedIdentity", - body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)), + body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)), cast_to=httpx.Response, options={"headers": {RAW_RESPONSE_HEADER: "stream"}}, )