@@ -21,15 +21,15 @@ class TestToMarkdown:
2121 @parametrize
2222 def test_method_transform (self , client : Cloudflare ) -> None :
2323 to_markdown = client .ai .to_markdown .transform (
24- body = b"raw file contents" ,
24+ file = b"raw file contents" ,
2525 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
2626 )
2727 assert_matches_type (SyncSinglePage [ToMarkdownTransformResponse ], to_markdown , path = ["response" ])
2828
2929 @parametrize
3030 def test_raw_response_transform (self , client : Cloudflare ) -> None :
3131 response = client .ai .to_markdown .with_raw_response .transform (
32- body = b"raw file contents" ,
32+ file = b"raw file contents" ,
3333 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
3434 )
3535
@@ -41,7 +41,7 @@ def test_raw_response_transform(self, client: Cloudflare) -> None:
4141 @parametrize
4242 def test_streaming_response_transform (self , client : Cloudflare ) -> None :
4343 with client .ai .to_markdown .with_streaming_response .transform (
44- body = b"raw file contents" ,
44+ file = b"raw file contents" ,
4545 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
4646 ) as response :
4747 assert not response .is_closed
@@ -56,7 +56,7 @@ def test_streaming_response_transform(self, client: Cloudflare) -> None:
5656 def test_path_params_transform (self , client : Cloudflare ) -> None :
5757 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
5858 client .ai .to_markdown .with_raw_response .transform (
59- body = b"raw file contents" ,
59+ file = b"raw file contents" ,
6060 account_id = "" ,
6161 )
6262
@@ -69,15 +69,15 @@ class TestAsyncToMarkdown:
6969 @parametrize
7070 async def test_method_transform (self , async_client : AsyncCloudflare ) -> None :
7171 to_markdown = await async_client .ai .to_markdown .transform (
72- body = b"raw file contents" ,
72+ file = b"raw file contents" ,
7373 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
7474 )
7575 assert_matches_type (AsyncSinglePage [ToMarkdownTransformResponse ], to_markdown , path = ["response" ])
7676
7777 @parametrize
7878 async def test_raw_response_transform (self , async_client : AsyncCloudflare ) -> None :
7979 response = await async_client .ai .to_markdown .with_raw_response .transform (
80- body = b"raw file contents" ,
80+ file = b"raw file contents" ,
8181 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
8282 )
8383
@@ -89,7 +89,7 @@ async def test_raw_response_transform(self, async_client: AsyncCloudflare) -> No
8989 @parametrize
9090 async def test_streaming_response_transform (self , async_client : AsyncCloudflare ) -> None :
9191 async with async_client .ai .to_markdown .with_streaming_response .transform (
92- body = b"raw file contents" ,
92+ file = b"raw file contents" ,
9393 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
9494 ) as response :
9595 assert not response .is_closed
@@ -104,6 +104,6 @@ async def test_streaming_response_transform(self, async_client: AsyncCloudflare)
104104 async def test_path_params_transform (self , async_client : AsyncCloudflare ) -> None :
105105 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
106106 await async_client .ai .to_markdown .with_raw_response .transform (
107- body = b"raw file contents" ,
107+ file = b"raw file contents" ,
108108 account_id = "" ,
109109 )
0 commit comments