@@ -181,14 +181,22 @@ def test_path_params_execute_sync(self, client: Runloop) -> None:
181181 @parametrize
182182 def test_method_read_file (self , client : Runloop ) -> None :
183183 devbox = client .devboxes .read_file (
184- "id" ,
184+ id = "id" ,
185+ )
186+ assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
187+
188+ @parametrize
189+ def test_method_read_file_with_all_params (self , client : Runloop ) -> None :
190+ devbox = client .devboxes .read_file (
191+ id = "id" ,
192+ file_path = "file_path" ,
185193 )
186194 assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
187195
188196 @parametrize
189197 def test_raw_response_read_file (self , client : Runloop ) -> None :
190198 response = client .devboxes .with_raw_response .read_file (
191- "id" ,
199+ id = "id" ,
192200 )
193201
194202 assert response .is_closed is True
@@ -199,7 +207,7 @@ def test_raw_response_read_file(self, client: Runloop) -> None:
199207 @parametrize
200208 def test_streaming_response_read_file (self , client : Runloop ) -> None :
201209 with client .devboxes .with_streaming_response .read_file (
202- "id" ,
210+ id = "id" ,
203211 ) as response :
204212 assert not response .is_closed
205213 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -213,7 +221,7 @@ def test_streaming_response_read_file(self, client: Runloop) -> None:
213221 def test_path_params_read_file (self , client : Runloop ) -> None :
214222 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
215223 client .devboxes .with_raw_response .read_file (
216- "" ,
224+ id = "" ,
217225 )
218226
219227 @parametrize
@@ -257,14 +265,23 @@ def test_path_params_shutdown(self, client: Runloop) -> None:
257265 @parametrize
258266 def test_method_write_file (self , client : Runloop ) -> None :
259267 devbox = client .devboxes .write_file (
260- "id" ,
268+ id = "id" ,
269+ )
270+ assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
271+
272+ @parametrize
273+ def test_method_write_file_with_all_params (self , client : Runloop ) -> None :
274+ devbox = client .devboxes .write_file (
275+ id = "id" ,
276+ contents = "contents" ,
277+ file_path = "file_path" ,
261278 )
262279 assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
263280
264281 @parametrize
265282 def test_raw_response_write_file (self , client : Runloop ) -> None :
266283 response = client .devboxes .with_raw_response .write_file (
267- "id" ,
284+ id = "id" ,
268285 )
269286
270287 assert response .is_closed is True
@@ -275,7 +292,7 @@ def test_raw_response_write_file(self, client: Runloop) -> None:
275292 @parametrize
276293 def test_streaming_response_write_file (self , client : Runloop ) -> None :
277294 with client .devboxes .with_streaming_response .write_file (
278- "id" ,
295+ id = "id" ,
279296 ) as response :
280297 assert not response .is_closed
281298 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -289,7 +306,7 @@ def test_streaming_response_write_file(self, client: Runloop) -> None:
289306 def test_path_params_write_file (self , client : Runloop ) -> None :
290307 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
291308 client .devboxes .with_raw_response .write_file (
292- "" ,
309+ id = "" ,
293310 )
294311
295312
@@ -456,14 +473,22 @@ async def test_path_params_execute_sync(self, async_client: AsyncRunloop) -> Non
456473 @parametrize
457474 async def test_method_read_file (self , async_client : AsyncRunloop ) -> None :
458475 devbox = await async_client .devboxes .read_file (
459- "id" ,
476+ id = "id" ,
477+ )
478+ assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
479+
480+ @parametrize
481+ async def test_method_read_file_with_all_params (self , async_client : AsyncRunloop ) -> None :
482+ devbox = await async_client .devboxes .read_file (
483+ id = "id" ,
484+ file_path = "file_path" ,
460485 )
461486 assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
462487
463488 @parametrize
464489 async def test_raw_response_read_file (self , async_client : AsyncRunloop ) -> None :
465490 response = await async_client .devboxes .with_raw_response .read_file (
466- "id" ,
491+ id = "id" ,
467492 )
468493
469494 assert response .is_closed is True
@@ -474,7 +499,7 @@ async def test_raw_response_read_file(self, async_client: AsyncRunloop) -> None:
474499 @parametrize
475500 async def test_streaming_response_read_file (self , async_client : AsyncRunloop ) -> None :
476501 async with async_client .devboxes .with_streaming_response .read_file (
477- "id" ,
502+ id = "id" ,
478503 ) as response :
479504 assert not response .is_closed
480505 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -488,7 +513,7 @@ async def test_streaming_response_read_file(self, async_client: AsyncRunloop) ->
488513 async def test_path_params_read_file (self , async_client : AsyncRunloop ) -> None :
489514 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
490515 await async_client .devboxes .with_raw_response .read_file (
491- "" ,
516+ id = "" ,
492517 )
493518
494519 @parametrize
@@ -532,14 +557,23 @@ async def test_path_params_shutdown(self, async_client: AsyncRunloop) -> None:
532557 @parametrize
533558 async def test_method_write_file (self , async_client : AsyncRunloop ) -> None :
534559 devbox = await async_client .devboxes .write_file (
535- "id" ,
560+ id = "id" ,
561+ )
562+ assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
563+
564+ @parametrize
565+ async def test_method_write_file_with_all_params (self , async_client : AsyncRunloop ) -> None :
566+ devbox = await async_client .devboxes .write_file (
567+ id = "id" ,
568+ contents = "contents" ,
569+ file_path = "file_path" ,
536570 )
537571 assert_matches_type (DevboxExecutionDetailView , devbox , path = ["response" ])
538572
539573 @parametrize
540574 async def test_raw_response_write_file (self , async_client : AsyncRunloop ) -> None :
541575 response = await async_client .devboxes .with_raw_response .write_file (
542- "id" ,
576+ id = "id" ,
543577 )
544578
545579 assert response .is_closed is True
@@ -550,7 +584,7 @@ async def test_raw_response_write_file(self, async_client: AsyncRunloop) -> None
550584 @parametrize
551585 async def test_streaming_response_write_file (self , async_client : AsyncRunloop ) -> None :
552586 async with async_client .devboxes .with_streaming_response .write_file (
553- "id" ,
587+ id = "id" ,
554588 ) as response :
555589 assert not response .is_closed
556590 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -564,5 +598,5 @@ async def test_streaming_response_write_file(self, async_client: AsyncRunloop) -
564598 async def test_path_params_write_file (self , async_client : AsyncRunloop ) -> None :
565599 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
566600 await async_client .devboxes .with_raw_response .write_file (
567- "" ,
601+ id = "" ,
568602 )
0 commit comments