@@ -25,8 +25,8 @@ class TestToMarkdown:
2525 def test_method_create (self , client : Cloudflare ) -> None :
2626 with pytest .warns (DeprecationWarning ):
2727 to_markdown = client .radar .ai .to_markdown .create (
28- body = b"raw file contents" ,
2928 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
29+ files = [b"raw file contents" ],
3030 )
3131
3232 assert_matches_type (SyncSinglePage [ToMarkdownCreateResponse ], to_markdown , path = ["response" ])
@@ -36,8 +36,8 @@ def test_method_create(self, client: Cloudflare) -> None:
3636 def test_raw_response_create (self , client : Cloudflare ) -> None :
3737 with pytest .warns (DeprecationWarning ):
3838 response = client .radar .ai .to_markdown .with_raw_response .create (
39- body = b"raw file contents" ,
4039 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
40+ files = [b"raw file contents" ],
4141 )
4242
4343 assert response .is_closed is True
@@ -50,8 +50,8 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
5050 def test_streaming_response_create (self , client : Cloudflare ) -> None :
5151 with pytest .warns (DeprecationWarning ):
5252 with client .radar .ai .to_markdown .with_streaming_response .create (
53- body = b"raw file contents" ,
5453 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
54+ files = [b"raw file contents" ],
5555 ) as response :
5656 assert not response .is_closed
5757 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -67,8 +67,8 @@ def test_path_params_create(self, client: Cloudflare) -> None:
6767 with pytest .warns (DeprecationWarning ):
6868 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
6969 client .radar .ai .to_markdown .with_raw_response .create (
70- body = b"raw file contents" ,
7170 account_id = "" ,
71+ files = [b"raw file contents" ],
7272 )
7373
7474
@@ -82,8 +82,8 @@ class TestAsyncToMarkdown:
8282 async def test_method_create (self , async_client : AsyncCloudflare ) -> None :
8383 with pytest .warns (DeprecationWarning ):
8484 to_markdown = await async_client .radar .ai .to_markdown .create (
85- body = b"raw file contents" ,
8685 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
86+ files = [b"raw file contents" ],
8787 )
8888
8989 assert_matches_type (AsyncSinglePage [ToMarkdownCreateResponse ], to_markdown , path = ["response" ])
@@ -93,8 +93,8 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
9393 async def test_raw_response_create (self , async_client : AsyncCloudflare ) -> None :
9494 with pytest .warns (DeprecationWarning ):
9595 response = await async_client .radar .ai .to_markdown .with_raw_response .create (
96- body = b"raw file contents" ,
9796 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
97+ files = [b"raw file contents" ],
9898 )
9999
100100 assert response .is_closed is True
@@ -107,8 +107,8 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
107107 async def test_streaming_response_create (self , async_client : AsyncCloudflare ) -> None :
108108 with pytest .warns (DeprecationWarning ):
109109 async with async_client .radar .ai .to_markdown .with_streaming_response .create (
110- body = b"raw file contents" ,
111110 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
111+ files = [b"raw file contents" ],
112112 ) as response :
113113 assert not response .is_closed
114114 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -124,6 +124,6 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
124124 with pytest .warns (DeprecationWarning ):
125125 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
126126 await async_client .radar .ai .to_markdown .with_raw_response .create (
127- body = b"raw file contents" ,
128127 account_id = "" ,
128+ files = [b"raw file contents" ],
129129 )
0 commit comments