@@ -110,8 +110,8 @@ def test_streaming_response_create(self, client: Runloop) -> None:
110110
111111 @parametrize
112112 def test_create_rejects_large_file_mount (self , client : Runloop ) -> None :
113- # 786,000 bytes + 1 byte
114- too_large_content = "a" * (786_000 + 1 )
113+ # 98,250 bytes + 1 byte (pre-encoded limit to stay within ~131,000 b64'd)
114+ too_large_content = "a" * (98_250 + 1 )
115115 with pytest .raises (ValueError , match = r"over the limit" ):
116116 client .blueprints .create (
117117 name = "name" ,
@@ -120,9 +120,9 @@ def test_create_rejects_large_file_mount(self, client: Runloop) -> None:
120120
121121 @parametrize
122122 def test_create_rejects_total_file_mount_size (self , client : Runloop ) -> None :
123- # Ten files at exactly per-file max, plus 1 extra byte to exceed total limit
124- per_file_max = 786_000
125- file_mounts = {f"/tmp/{ i } .txt" : "a" * per_file_max for i in range (10 )}
123+ # Eighty files at per-file max (98,250) equals current total limit; add 1 byte to exceed
124+ per_file_max = 98_250
125+ file_mounts = {f"/tmp/{ i } .txt" : "a" * per_file_max for i in range (80 )}
126126 file_mounts ["/tmp/extra.txt" ] = "x"
127127 with pytest .raises (ValueError , match = r"total file_mounts size .* over the limit" ):
128128 client .blueprints .create (
@@ -560,8 +560,8 @@ async def test_streaming_response_create(self, async_client: AsyncRunloop) -> No
560560
561561 @parametrize
562562 async def test_create_rejects_large_file_mount (self , async_client : AsyncRunloop ) -> None :
563- # 786,000 bytes + 1 byte
564- too_large_content = "a" * (786_000 + 1 )
563+ # 98,250 bytes + 1 byte (pre-encoded limit to stay within ~131,000 b64'd)
564+ too_large_content = "a" * (98_250 + 1 )
565565 with pytest .raises (ValueError , match = r"over the limit" ):
566566 await async_client .blueprints .create (
567567 name = "name" ,
@@ -570,9 +570,9 @@ async def test_create_rejects_large_file_mount(self, async_client: AsyncRunloop)
570570
571571 @parametrize
572572 async def test_create_rejects_total_file_mount_size (self , async_client : AsyncRunloop ) -> None :
573- # Ten files at exactly per-file max, plus 1 extra byte to exceed total limit
574- per_file_max = 786_000
575- file_mounts = {f"/tmp/{ i } .txt" : "a" * per_file_max for i in range (10 )}
573+ # Eighty files at per-file max (98,250) equals current total limit; add 1 byte to exceed
574+ per_file_max = 98_250
575+ file_mounts = {f"/tmp/{ i } .txt" : "a" * per_file_max for i in range (80 )}
576576 file_mounts ["/tmp/extra.txt" ] = "x"
577577 with pytest .raises (ValueError , match = r"total file_mounts size .* over the limit" ):
578578 await async_client .blueprints .create (
0 commit comments