@@ -22,15 +22,7 @@ def test_method_create(self, client: Cloudflare) -> None:
2222 upload = client .workers .assets .upload .create (
2323 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
2424 base64 = True ,
25- )
26- assert_matches_type (Optional [UploadCreateResponse ], upload , path = ["response" ])
27-
28- @parametrize
29- def test_method_create_with_all_params (self , client : Cloudflare ) -> None :
30- upload = client .workers .assets .upload .create (
31- account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
32- base64 = True ,
33- any_file_hash = ["string" ],
25+ body = {"foo" : "string" },
3426 )
3527 assert_matches_type (Optional [UploadCreateResponse ], upload , path = ["response" ])
3628
@@ -39,6 +31,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
3931 response = client .workers .assets .upload .with_raw_response .create (
4032 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
4133 base64 = True ,
34+ body = {"foo" : "string" },
4235 )
4336
4437 assert response .is_closed is True
@@ -51,6 +44,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
5144 with client .workers .assets .upload .with_streaming_response .create (
5245 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
5346 base64 = True ,
47+ body = {"foo" : "string" },
5448 ) as response :
5549 assert not response .is_closed
5650 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -66,6 +60,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
6660 client .workers .assets .upload .with_raw_response .create (
6761 account_id = "" ,
6862 base64 = True ,
63+ body = {"foo" : "string" },
6964 )
7065
7166
@@ -77,15 +72,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
7772 upload = await async_client .workers .assets .upload .create (
7873 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
7974 base64 = True ,
80- )
81- assert_matches_type (Optional [UploadCreateResponse ], upload , path = ["response" ])
82-
83- @parametrize
84- async def test_method_create_with_all_params (self , async_client : AsyncCloudflare ) -> None :
85- upload = await async_client .workers .assets .upload .create (
86- account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
87- base64 = True ,
88- any_file_hash = ["string" ],
75+ body = {"foo" : "string" },
8976 )
9077 assert_matches_type (Optional [UploadCreateResponse ], upload , path = ["response" ])
9178
@@ -94,6 +81,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
9481 response = await async_client .workers .assets .upload .with_raw_response .create (
9582 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
9683 base64 = True ,
84+ body = {"foo" : "string" },
9785 )
9886
9987 assert response .is_closed is True
@@ -106,6 +94,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
10694 async with async_client .workers .assets .upload .with_streaming_response .create (
10795 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
10896 base64 = True ,
97+ body = {"foo" : "string" },
10998 ) as response :
11099 assert not response .is_closed
111100 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -121,4 +110,5 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
121110 await async_client .workers .assets .upload .with_raw_response .create (
122111 account_id = "" ,
123112 base64 = True ,
113+ body = {"foo" : "string" },
124114 )
0 commit comments