@@ -29,14 +29,14 @@ class TestFiles:
2929 @parametrize
3030 def test_method_create (self , client : Mixedbread ) -> None :
3131 file = client .files .create (
32- file = b"raw file contents " ,
32+ file = b"Example data " ,
3333 )
3434 assert_matches_type (FileObject , file , path = ["response" ])
3535
3636 @parametrize
3737 def test_raw_response_create (self , client : Mixedbread ) -> None :
3838 response = client .files .with_raw_response .create (
39- file = b"raw file contents " ,
39+ file = b"Example data " ,
4040 )
4141
4242 assert response .is_closed is True
@@ -47,7 +47,7 @@ def test_raw_response_create(self, client: Mixedbread) -> None:
4747 @parametrize
4848 def test_streaming_response_create (self , client : Mixedbread ) -> None :
4949 with client .files .with_streaming_response .create (
50- file = b"raw file contents " ,
50+ file = b"Example data " ,
5151 ) as response :
5252 assert not response .is_closed
5353 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -99,15 +99,15 @@ def test_path_params_retrieve(self, client: Mixedbread) -> None:
9999 def test_method_update (self , client : Mixedbread ) -> None :
100100 file = client .files .update (
101101 file_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
102- file = b"raw file contents " ,
102+ file = b"Example data " ,
103103 )
104104 assert_matches_type (FileObject , file , path = ["response" ])
105105
106106 @parametrize
107107 def test_raw_response_update (self , client : Mixedbread ) -> None :
108108 response = client .files .with_raw_response .update (
109109 file_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
110- file = b"raw file contents " ,
110+ file = b"Example data " ,
111111 )
112112
113113 assert response .is_closed is True
@@ -119,7 +119,7 @@ def test_raw_response_update(self, client: Mixedbread) -> None:
119119 def test_streaming_response_update (self , client : Mixedbread ) -> None :
120120 with client .files .with_streaming_response .update (
121121 file_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
122- file = b"raw file contents " ,
122+ file = b"Example data " ,
123123 ) as response :
124124 assert not response .is_closed
125125 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -134,7 +134,7 @@ def test_path_params_update(self, client: Mixedbread) -> None:
134134 with pytest .raises (ValueError , match = r"Expected a non-empty value for `file_id` but received ''" ):
135135 client .files .with_raw_response .update (
136136 file_id = "" ,
137- file = b"raw file contents " ,
137+ file = b"Example data " ,
138138 )
139139
140140 @parametrize
@@ -276,14 +276,14 @@ class TestAsyncFiles:
276276 @parametrize
277277 async def test_method_create (self , async_client : AsyncMixedbread ) -> None :
278278 file = await async_client .files .create (
279- file = b"raw file contents " ,
279+ file = b"Example data " ,
280280 )
281281 assert_matches_type (FileObject , file , path = ["response" ])
282282
283283 @parametrize
284284 async def test_raw_response_create (self , async_client : AsyncMixedbread ) -> None :
285285 response = await async_client .files .with_raw_response .create (
286- file = b"raw file contents " ,
286+ file = b"Example data " ,
287287 )
288288
289289 assert response .is_closed is True
@@ -294,7 +294,7 @@ async def test_raw_response_create(self, async_client: AsyncMixedbread) -> None:
294294 @parametrize
295295 async def test_streaming_response_create (self , async_client : AsyncMixedbread ) -> None :
296296 async with async_client .files .with_streaming_response .create (
297- file = b"raw file contents " ,
297+ file = b"Example data " ,
298298 ) as response :
299299 assert not response .is_closed
300300 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -346,15 +346,15 @@ async def test_path_params_retrieve(self, async_client: AsyncMixedbread) -> None
346346 async def test_method_update (self , async_client : AsyncMixedbread ) -> None :
347347 file = await async_client .files .update (
348348 file_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
349- file = b"raw file contents " ,
349+ file = b"Example data " ,
350350 )
351351 assert_matches_type (FileObject , file , path = ["response" ])
352352
353353 @parametrize
354354 async def test_raw_response_update (self , async_client : AsyncMixedbread ) -> None :
355355 response = await async_client .files .with_raw_response .update (
356356 file_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
357- file = b"raw file contents " ,
357+ file = b"Example data " ,
358358 )
359359
360360 assert response .is_closed is True
@@ -366,7 +366,7 @@ async def test_raw_response_update(self, async_client: AsyncMixedbread) -> None:
366366 async def test_streaming_response_update (self , async_client : AsyncMixedbread ) -> None :
367367 async with async_client .files .with_streaming_response .update (
368368 file_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
369- file = b"raw file contents " ,
369+ file = b"Example data " ,
370370 ) as response :
371371 assert not response .is_closed
372372 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -381,7 +381,7 @@ async def test_path_params_update(self, async_client: AsyncMixedbread) -> None:
381381 with pytest .raises (ValueError , match = r"Expected a non-empty value for `file_id` but received ''" ):
382382 await async_client .files .with_raw_response .update (
383383 file_id = "" ,
384- file = b"raw file contents " ,
384+ file = b"Example data " ,
385385 )
386386
387387 @parametrize
0 commit comments