Skip to content

Commit aa82a7a

Browse files
committed
chore(internal): cast type in mocked test (#154)
1 parent 58ec02b commit aa82a7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No
712712
with pytest.raises(APITimeoutError):
713713
self.client.post(
714714
"/customers",
715-
body=dict(email="example-customer@withorb.com", name="My Customer"),
715+
body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")),
716716
cast_to=httpx.Response,
717717
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
718718
)
@@ -727,7 +727,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non
727727
with pytest.raises(APIStatusError):
728728
self.client.post(
729729
"/customers",
730-
body=dict(email="example-customer@withorb.com", name="My Customer"),
730+
body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")),
731731
cast_to=httpx.Response,
732732
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
733733
)
@@ -1416,7 +1416,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter)
14161416
with pytest.raises(APITimeoutError):
14171417
await self.client.post(
14181418
"/customers",
1419-
body=dict(email="example-customer@withorb.com", name="My Customer"),
1419+
body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")),
14201420
cast_to=httpx.Response,
14211421
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
14221422
)
@@ -1431,7 +1431,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter)
14311431
with pytest.raises(APIStatusError):
14321432
await self.client.post(
14331433
"/customers",
1434-
body=dict(email="example-customer@withorb.com", name="My Customer"),
1434+
body=cast(object, dict(email="example-customer@withorb.com", name="My Customer")),
14351435
cast_to=httpx.Response,
14361436
options={"headers": {RAW_RESPONSE_HEADER: "stream"}},
14371437
)

0 commit comments

Comments
 (0)