@@ -715,18 +715,21 @@ def test_path_params_read_file_contents(self, client: Runloop) -> None:
715715
716716 @parametrize
717717 def test_method_remove_tunnel (self , client : Runloop ) -> None :
718- devbox = client .devboxes .remove_tunnel (
719- id = "id" ,
720- port = 0 ,
721- )
718+ with pytest .warns (DeprecationWarning ):
719+ devbox = client .devboxes .remove_tunnel (
720+ id = "id" ,
721+ port = 0 ,
722+ )
723+
722724 assert_matches_type (object , devbox , path = ["response" ])
723725
724726 @parametrize
725727 def test_raw_response_remove_tunnel (self , client : Runloop ) -> None :
726- response = client .devboxes .with_raw_response .remove_tunnel (
727- id = "id" ,
728- port = 0 ,
729- )
728+ with pytest .warns (DeprecationWarning ):
729+ response = client .devboxes .with_raw_response .remove_tunnel (
730+ id = "id" ,
731+ port = 0 ,
732+ )
730733
731734 assert response .is_closed is True
732735 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -735,25 +738,27 @@ def test_raw_response_remove_tunnel(self, client: Runloop) -> None:
735738
736739 @parametrize
737740 def test_streaming_response_remove_tunnel (self , client : Runloop ) -> None :
738- with client .devboxes .with_streaming_response .remove_tunnel (
739- id = "id" ,
740- port = 0 ,
741- ) as response :
742- assert not response .is_closed
743- assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
741+ with pytest .warns (DeprecationWarning ):
742+ with client .devboxes .with_streaming_response .remove_tunnel (
743+ id = "id" ,
744+ port = 0 ,
745+ ) as response :
746+ assert not response .is_closed
747+ assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
744748
745- devbox = response .parse ()
746- assert_matches_type (object , devbox , path = ["response" ])
749+ devbox = response .parse ()
750+ assert_matches_type (object , devbox , path = ["response" ])
747751
748752 assert cast (Any , response .is_closed ) is True
749753
750754 @parametrize
751755 def test_path_params_remove_tunnel (self , client : Runloop ) -> None :
752- with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
753- client .devboxes .with_raw_response .remove_tunnel (
754- id = "" ,
755- port = 0 ,
756- )
756+ with pytest .warns (DeprecationWarning ):
757+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
758+ client .devboxes .with_raw_response .remove_tunnel (
759+ id = "" ,
760+ port = 0 ,
761+ )
757762
758763 @parametrize
759764 def test_method_resume (self , client : Runloop ) -> None :
@@ -2276,18 +2281,21 @@ async def test_path_params_read_file_contents(self, async_client: AsyncRunloop)
22762281
22772282 @parametrize
22782283 async def test_method_remove_tunnel (self , async_client : AsyncRunloop ) -> None :
2279- devbox = await async_client .devboxes .remove_tunnel (
2280- id = "id" ,
2281- port = 0 ,
2282- )
2284+ with pytest .warns (DeprecationWarning ):
2285+ devbox = await async_client .devboxes .remove_tunnel (
2286+ id = "id" ,
2287+ port = 0 ,
2288+ )
2289+
22832290 assert_matches_type (object , devbox , path = ["response" ])
22842291
22852292 @parametrize
22862293 async def test_raw_response_remove_tunnel (self , async_client : AsyncRunloop ) -> None :
2287- response = await async_client .devboxes .with_raw_response .remove_tunnel (
2288- id = "id" ,
2289- port = 0 ,
2290- )
2294+ with pytest .warns (DeprecationWarning ):
2295+ response = await async_client .devboxes .with_raw_response .remove_tunnel (
2296+ id = "id" ,
2297+ port = 0 ,
2298+ )
22912299
22922300 assert response .is_closed is True
22932301 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -2296,25 +2304,27 @@ async def test_raw_response_remove_tunnel(self, async_client: AsyncRunloop) -> N
22962304
22972305 @parametrize
22982306 async def test_streaming_response_remove_tunnel (self , async_client : AsyncRunloop ) -> None :
2299- async with async_client .devboxes .with_streaming_response .remove_tunnel (
2300- id = "id" ,
2301- port = 0 ,
2302- ) as response :
2303- assert not response .is_closed
2304- assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
2307+ with pytest .warns (DeprecationWarning ):
2308+ async with async_client .devboxes .with_streaming_response .remove_tunnel (
2309+ id = "id" ,
2310+ port = 0 ,
2311+ ) as response :
2312+ assert not response .is_closed
2313+ assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
23052314
2306- devbox = await response .parse ()
2307- assert_matches_type (object , devbox , path = ["response" ])
2315+ devbox = await response .parse ()
2316+ assert_matches_type (object , devbox , path = ["response" ])
23082317
23092318 assert cast (Any , response .is_closed ) is True
23102319
23112320 @parametrize
23122321 async def test_path_params_remove_tunnel (self , async_client : AsyncRunloop ) -> None :
2313- with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
2314- await async_client .devboxes .with_raw_response .remove_tunnel (
2315- id = "" ,
2316- port = 0 ,
2317- )
2322+ with pytest .warns (DeprecationWarning ):
2323+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
2324+ await async_client .devboxes .with_raw_response .remove_tunnel (
2325+ id = "" ,
2326+ port = 0 ,
2327+ )
23182328
23192329 @parametrize
23202330 async def test_method_resume (self , async_client : AsyncRunloop ) -> None :
0 commit comments