@@ -496,7 +496,7 @@ def test_method_upload(self, client: Kernel) -> None:
496496 files = [
497497 {
498498 "dest_path" : "/J!" ,
499- "file" : b"raw file contents " ,
499+ "file" : b"Example data " ,
500500 }
501501 ],
502502 )
@@ -510,7 +510,7 @@ def test_raw_response_upload(self, client: Kernel) -> None:
510510 files = [
511511 {
512512 "dest_path" : "/J!" ,
513- "file" : b"raw file contents " ,
513+ "file" : b"Example data " ,
514514 }
515515 ],
516516 )
@@ -528,7 +528,7 @@ def test_streaming_response_upload(self, client: Kernel) -> None:
528528 files = [
529529 {
530530 "dest_path" : "/J!" ,
531- "file" : b"raw file contents " ,
531+ "file" : b"Example data " ,
532532 }
533533 ],
534534 ) as response :
@@ -549,7 +549,7 @@ def test_path_params_upload(self, client: Kernel) -> None:
549549 files = [
550550 {
551551 "dest_path" : "/J!" ,
552- "file" : b"raw file contents " ,
552+ "file" : b"Example data " ,
553553 }
554554 ],
555555 )
@@ -560,7 +560,7 @@ def test_method_upload_zip(self, client: Kernel) -> None:
560560 f = client .browsers .fs .upload_zip (
561561 id = "id" ,
562562 dest_path = "/J!" ,
563- zip_file = b"raw file contents " ,
563+ zip_file = b"Example data " ,
564564 )
565565 assert f is None
566566
@@ -570,7 +570,7 @@ def test_raw_response_upload_zip(self, client: Kernel) -> None:
570570 response = client .browsers .fs .with_raw_response .upload_zip (
571571 id = "id" ,
572572 dest_path = "/J!" ,
573- zip_file = b"raw file contents " ,
573+ zip_file = b"Example data " ,
574574 )
575575
576576 assert response .is_closed is True
@@ -584,7 +584,7 @@ def test_streaming_response_upload_zip(self, client: Kernel) -> None:
584584 with client .browsers .fs .with_streaming_response .upload_zip (
585585 id = "id" ,
586586 dest_path = "/J!" ,
587- zip_file = b"raw file contents " ,
587+ zip_file = b"Example data " ,
588588 ) as response :
589589 assert not response .is_closed
590590 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -601,15 +601,15 @@ def test_path_params_upload_zip(self, client: Kernel) -> None:
601601 client .browsers .fs .with_raw_response .upload_zip (
602602 id = "" ,
603603 dest_path = "/J!" ,
604- zip_file = b"raw file contents " ,
604+ zip_file = b"Example data " ,
605605 )
606606
607607 @pytest .mark .skip (reason = "Mock server tests are disabled" )
608608 @parametrize
609609 def test_method_write_file (self , client : Kernel ) -> None :
610610 f = client .browsers .fs .write_file (
611611 id = "id" ,
612- contents = b"raw file contents " ,
612+ contents = b"Example data " ,
613613 path = "/J!" ,
614614 )
615615 assert f is None
@@ -619,7 +619,7 @@ def test_method_write_file(self, client: Kernel) -> None:
619619 def test_method_write_file_with_all_params (self , client : Kernel ) -> None :
620620 f = client .browsers .fs .write_file (
621621 id = "id" ,
622- contents = b"raw file contents " ,
622+ contents = b"Example data " ,
623623 path = "/J!" ,
624624 mode = "0611" ,
625625 )
@@ -630,7 +630,7 @@ def test_method_write_file_with_all_params(self, client: Kernel) -> None:
630630 def test_raw_response_write_file (self , client : Kernel ) -> None :
631631 response = client .browsers .fs .with_raw_response .write_file (
632632 id = "id" ,
633- contents = b"raw file contents " ,
633+ contents = b"Example data " ,
634634 path = "/J!" ,
635635 )
636636
@@ -644,7 +644,7 @@ def test_raw_response_write_file(self, client: Kernel) -> None:
644644 def test_streaming_response_write_file (self , client : Kernel ) -> None :
645645 with client .browsers .fs .with_streaming_response .write_file (
646646 id = "id" ,
647- contents = b"raw file contents " ,
647+ contents = b"Example data " ,
648648 path = "/J!" ,
649649 ) as response :
650650 assert not response .is_closed
@@ -661,7 +661,7 @@ def test_path_params_write_file(self, client: Kernel) -> None:
661661 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
662662 client .browsers .fs .with_raw_response .write_file (
663663 id = "" ,
664- contents = b"raw file contents " ,
664+ contents = b"Example data " ,
665665 path = "/J!" ,
666666 )
667667
@@ -1139,7 +1139,7 @@ async def test_method_upload(self, async_client: AsyncKernel) -> None:
11391139 files = [
11401140 {
11411141 "dest_path" : "/J!" ,
1142- "file" : b"raw file contents " ,
1142+ "file" : b"Example data " ,
11431143 }
11441144 ],
11451145 )
@@ -1153,7 +1153,7 @@ async def test_raw_response_upload(self, async_client: AsyncKernel) -> None:
11531153 files = [
11541154 {
11551155 "dest_path" : "/J!" ,
1156- "file" : b"raw file contents " ,
1156+ "file" : b"Example data " ,
11571157 }
11581158 ],
11591159 )
@@ -1171,7 +1171,7 @@ async def test_streaming_response_upload(self, async_client: AsyncKernel) -> Non
11711171 files = [
11721172 {
11731173 "dest_path" : "/J!" ,
1174- "file" : b"raw file contents " ,
1174+ "file" : b"Example data " ,
11751175 }
11761176 ],
11771177 ) as response :
@@ -1192,7 +1192,7 @@ async def test_path_params_upload(self, async_client: AsyncKernel) -> None:
11921192 files = [
11931193 {
11941194 "dest_path" : "/J!" ,
1195- "file" : b"raw file contents " ,
1195+ "file" : b"Example data " ,
11961196 }
11971197 ],
11981198 )
@@ -1203,7 +1203,7 @@ async def test_method_upload_zip(self, async_client: AsyncKernel) -> None:
12031203 f = await async_client .browsers .fs .upload_zip (
12041204 id = "id" ,
12051205 dest_path = "/J!" ,
1206- zip_file = b"raw file contents " ,
1206+ zip_file = b"Example data " ,
12071207 )
12081208 assert f is None
12091209
@@ -1213,7 +1213,7 @@ async def test_raw_response_upload_zip(self, async_client: AsyncKernel) -> None:
12131213 response = await async_client .browsers .fs .with_raw_response .upload_zip (
12141214 id = "id" ,
12151215 dest_path = "/J!" ,
1216- zip_file = b"raw file contents " ,
1216+ zip_file = b"Example data " ,
12171217 )
12181218
12191219 assert response .is_closed is True
@@ -1227,7 +1227,7 @@ async def test_streaming_response_upload_zip(self, async_client: AsyncKernel) ->
12271227 async with async_client .browsers .fs .with_streaming_response .upload_zip (
12281228 id = "id" ,
12291229 dest_path = "/J!" ,
1230- zip_file = b"raw file contents " ,
1230+ zip_file = b"Example data " ,
12311231 ) as response :
12321232 assert not response .is_closed
12331233 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -1244,15 +1244,15 @@ async def test_path_params_upload_zip(self, async_client: AsyncKernel) -> None:
12441244 await async_client .browsers .fs .with_raw_response .upload_zip (
12451245 id = "" ,
12461246 dest_path = "/J!" ,
1247- zip_file = b"raw file contents " ,
1247+ zip_file = b"Example data " ,
12481248 )
12491249
12501250 @pytest .mark .skip (reason = "Mock server tests are disabled" )
12511251 @parametrize
12521252 async def test_method_write_file (self , async_client : AsyncKernel ) -> None :
12531253 f = await async_client .browsers .fs .write_file (
12541254 id = "id" ,
1255- contents = b"raw file contents " ,
1255+ contents = b"Example data " ,
12561256 path = "/J!" ,
12571257 )
12581258 assert f is None
@@ -1262,7 +1262,7 @@ async def test_method_write_file(self, async_client: AsyncKernel) -> None:
12621262 async def test_method_write_file_with_all_params (self , async_client : AsyncKernel ) -> None :
12631263 f = await async_client .browsers .fs .write_file (
12641264 id = "id" ,
1265- contents = b"raw file contents " ,
1265+ contents = b"Example data " ,
12661266 path = "/J!" ,
12671267 mode = "0611" ,
12681268 )
@@ -1273,7 +1273,7 @@ async def test_method_write_file_with_all_params(self, async_client: AsyncKernel
12731273 async def test_raw_response_write_file (self , async_client : AsyncKernel ) -> None :
12741274 response = await async_client .browsers .fs .with_raw_response .write_file (
12751275 id = "id" ,
1276- contents = b"raw file contents " ,
1276+ contents = b"Example data " ,
12771277 path = "/J!" ,
12781278 )
12791279
@@ -1287,7 +1287,7 @@ async def test_raw_response_write_file(self, async_client: AsyncKernel) -> None:
12871287 async def test_streaming_response_write_file (self , async_client : AsyncKernel ) -> None :
12881288 async with async_client .browsers .fs .with_streaming_response .write_file (
12891289 id = "id" ,
1290- contents = b"raw file contents " ,
1290+ contents = b"Example data " ,
12911291 path = "/J!" ,
12921292 ) as response :
12931293 assert not response .is_closed
@@ -1304,6 +1304,6 @@ async def test_path_params_write_file(self, async_client: AsyncKernel) -> None:
13041304 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
13051305 await async_client .browsers .fs .with_raw_response .write_file (
13061306 id = "" ,
1307- contents = b"raw file contents " ,
1307+ contents = b"Example data " ,
13081308 path = "/J!" ,
13091309 )
0 commit comments