Skip to content

Commit 43a8876

Browse files
chore(internal): update client tests (#32)
1 parent daa1f2b commit 43a8876

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: tests/test_client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No
744744
with pytest.raises(APITimeoutError):
745745
self.client.post(
746746
"/gitpod.v1.IdentityService/GetAuthenticatedIdentity",
747-
body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)),
747+
body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)),
748748
cast_to=httpx.Response,
749749
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
750750
)
@@ -759,7 +759,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non
759759
with pytest.raises(APIStatusError):
760760
self.client.post(
761761
"/gitpod.v1.IdentityService/GetAuthenticatedIdentity",
762-
body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)),
762+
body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)),
763763
cast_to=httpx.Response,
764764
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
765765
)
@@ -1544,7 +1544,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter)
15441544
with pytest.raises(APITimeoutError):
15451545
await self.client.post(
15461546
"/gitpod.v1.IdentityService/GetAuthenticatedIdentity",
1547-
body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)),
1547+
body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)),
15481548
cast_to=httpx.Response,
15491549
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
15501550
)
@@ -1559,7 +1559,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter)
15591559
with pytest.raises(APIStatusError):
15601560
await self.client.post(
15611561
"/gitpod.v1.IdentityService/GetAuthenticatedIdentity",
1562-
body=cast(object, maybe_transform(dict(), IdentityGetAuthenticatedIdentityParams)),
1562+
body=cast(object, maybe_transform({}, IdentityGetAuthenticatedIdentityParams)),
15631563
cast_to=httpx.Response,
15641564
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
15651565
)

0 commit comments

Comments
 (0)