@@ -21,14 +21,6 @@ class TestToMarkdown:
2121 @pytest .mark .skip (reason = "TODO: investigate prism error for invalid security scheme used" )
2222 @parametrize
2323 def test_method_create (self , client : Cloudflare ) -> None :
24- to_markdown = client .radar .ai .to_markdown .create (
25- account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
26- )
27- assert_matches_type (SyncSinglePage [ToMarkdownCreateResponse ], to_markdown , path = ["response" ])
28-
29- @pytest .mark .skip (reason = "TODO: investigate prism error for invalid security scheme used" )
30- @parametrize
31- def test_method_create_with_all_params (self , client : Cloudflare ) -> None :
3224 to_markdown = client .radar .ai .to_markdown .create (
3325 body = b"raw file contents" ,
3426 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
@@ -39,6 +31,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3931 @parametrize
4032 def test_raw_response_create (self , client : Cloudflare ) -> None :
4133 response = client .radar .ai .to_markdown .with_raw_response .create (
34+ body = b"raw file contents" ,
4235 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
4336 )
4437
@@ -51,6 +44,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
5144 @parametrize
5245 def test_streaming_response_create (self , client : Cloudflare ) -> None :
5346 with client .radar .ai .to_markdown .with_streaming_response .create (
47+ body = b"raw file contents" ,
5448 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
5549 ) as response :
5650 assert not response .is_closed
@@ -66,6 +60,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
6660 def test_path_params_create (self , client : Cloudflare ) -> None :
6761 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
6862 client .radar .ai .to_markdown .with_raw_response .create (
63+ body = b"raw file contents" ,
6964 account_id = "" ,
7065 )
7166
@@ -78,14 +73,6 @@ class TestAsyncToMarkdown:
7873 @pytest .mark .skip (reason = "TODO: investigate prism error for invalid security scheme used" )
7974 @parametrize
8075 async def test_method_create (self , async_client : AsyncCloudflare ) -> None :
81- to_markdown = await async_client .radar .ai .to_markdown .create (
82- account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
83- )
84- assert_matches_type (AsyncSinglePage [ToMarkdownCreateResponse ], to_markdown , path = ["response" ])
85-
86- @pytest .mark .skip (reason = "TODO: investigate prism error for invalid security scheme used" )
87- @parametrize
88- async def test_method_create_with_all_params (self , async_client : AsyncCloudflare ) -> None :
8976 to_markdown = await async_client .radar .ai .to_markdown .create (
9077 body = b"raw file contents" ,
9178 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
@@ -96,6 +83,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
9683 @parametrize
9784 async def test_raw_response_create (self , async_client : AsyncCloudflare ) -> None :
9885 response = await async_client .radar .ai .to_markdown .with_raw_response .create (
86+ body = b"raw file contents" ,
9987 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
10088 )
10189
@@ -108,6 +96,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
10896 @parametrize
10997 async def test_streaming_response_create (self , async_client : AsyncCloudflare ) -> None :
11098 async with async_client .radar .ai .to_markdown .with_streaming_response .create (
99+ body = b"raw file contents" ,
111100 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
112101 ) as response :
113102 assert not response .is_closed
@@ -123,5 +112,6 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
123112 async def test_path_params_create (self , async_client : AsyncCloudflare ) -> None :
124113 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
125114 await async_client .radar .ai .to_markdown .with_raw_response .create (
115+ body = b"raw file contents" ,
126116 account_id = "" ,
127117 )
0 commit comments