@@ -724,7 +724,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No
724724 with pytest .raises (APITimeoutError ):
725725 self .client .post (
726726 "/v0/factcheck" ,
727- body = cast (object , dict (claim = "claim" )),
727+ body = cast (object , dict (claim = "claim" , context = "context" )),
728728 cast_to = httpx .Response ,
729729 options = {"headers" : {RAW_RESPONSE_HEADER : "stream" }},
730730 )
@@ -739,7 +739,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non
739739 with pytest .raises (APIStatusError ):
740740 self .client .post (
741741 "/v0/factcheck" ,
742- body = cast (object , dict (claim = "claim" )),
742+ body = cast (object , dict (claim = "claim" , context = "context" )),
743743 cast_to = httpx .Response ,
744744 options = {"headers" : {RAW_RESPONSE_HEADER : "stream" }},
745745 )
@@ -763,7 +763,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
763763
764764 respx_mock .post ("/v0/factcheck" ).mock (side_effect = retry_handler )
765765
766- response = client .factcheck .with_raw_response .create (claim = "claim" )
766+ response = client .factcheck .with_raw_response .create (claim = "claim" , context = "context" )
767767
768768 assert response .retries_taken == failures_before_success
769769
@@ -1446,7 +1446,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter)
14461446 with pytest .raises (APITimeoutError ):
14471447 await self .client .post (
14481448 "/v0/factcheck" ,
1449- body = cast (object , dict (claim = "claim" )),
1449+ body = cast (object , dict (claim = "claim" , context = "context" )),
14501450 cast_to = httpx .Response ,
14511451 options = {"headers" : {RAW_RESPONSE_HEADER : "stream" }},
14521452 )
@@ -1461,7 +1461,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter)
14611461 with pytest .raises (APIStatusError ):
14621462 await self .client .post (
14631463 "/v0/factcheck" ,
1464- body = cast (object , dict (claim = "claim" )),
1464+ body = cast (object , dict (claim = "claim" , context = "context" )),
14651465 cast_to = httpx .Response ,
14661466 options = {"headers" : {RAW_RESPONSE_HEADER : "stream" }},
14671467 )
@@ -1488,6 +1488,6 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
14881488
14891489 respx_mock .post ("/v0/factcheck" ).mock (side_effect = retry_handler )
14901490
1491- response = await client .factcheck .with_raw_response .create (claim = "claim" )
1491+ response = await client .factcheck .with_raw_response .create (claim = "claim" , context = "context" )
14921492
14931493 assert response .retries_taken == failures_before_success
0 commit comments