@@ -22,7 +22,6 @@ def test_method_create(self, client: Cloudflare) -> None:
2222 subdomain = client .workers .scripts .subdomain .create (
2323 script_name = "this-is_my_script-01" ,
2424 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
25- enabled = True ,
2625 )
2726 assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
2827
@@ -32,7 +31,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3231 script_name = "this-is_my_script-01" ,
3332 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
3433 enabled = True ,
35- previews_enabled = True ,
3634 )
3735 assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
3836
@@ -41,7 +39,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
4139 response = client .workers .scripts .subdomain .with_raw_response .create (
4240 script_name = "this-is_my_script-01" ,
4341 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
44- enabled = True ,
4542 )
4643
4744 assert response .is_closed is True
@@ -54,7 +51,6 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
5451 with client .workers .scripts .subdomain .with_streaming_response .create (
5552 script_name = "this-is_my_script-01" ,
5653 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
57- enabled = True ,
5854 ) as response :
5955 assert not response .is_closed
6056 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -70,14 +66,12 @@ def test_path_params_create(self, client: Cloudflare) -> None:
7066 client .workers .scripts .subdomain .with_raw_response .create (
7167 script_name = "this-is_my_script-01" ,
7268 account_id = "" ,
73- enabled = True ,
7469 )
7570
7671 with pytest .raises (ValueError , match = r"Expected a non-empty value for `script_name` but received ''" ):
7772 client .workers .scripts .subdomain .with_raw_response .create (
7873 script_name = "" ,
7974 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
80- enabled = True ,
8175 )
8276
8377 @parametrize
@@ -137,7 +131,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
137131 subdomain = await async_client .workers .scripts .subdomain .create (
138132 script_name = "this-is_my_script-01" ,
139133 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
140- enabled = True ,
141134 )
142135 assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
143136
@@ -147,7 +140,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
147140 script_name = "this-is_my_script-01" ,
148141 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
149142 enabled = True ,
150- previews_enabled = True ,
151143 )
152144 assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
153145
@@ -156,7 +148,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
156148 response = await async_client .workers .scripts .subdomain .with_raw_response .create (
157149 script_name = "this-is_my_script-01" ,
158150 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
159- enabled = True ,
160151 )
161152
162153 assert response .is_closed is True
@@ -169,7 +160,6 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
169160 async with async_client .workers .scripts .subdomain .with_streaming_response .create (
170161 script_name = "this-is_my_script-01" ,
171162 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
172- enabled = True ,
173163 ) as response :
174164 assert not response .is_closed
175165 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -185,14 +175,12 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
185175 await async_client .workers .scripts .subdomain .with_raw_response .create (
186176 script_name = "this-is_my_script-01" ,
187177 account_id = "" ,
188- enabled = True ,
189178 )
190179
191180 with pytest .raises (ValueError , match = r"Expected a non-empty value for `script_name` but received ''" ):
192181 await async_client .workers .scripts .subdomain .with_raw_response .create (
193182 script_name = "" ,
194183 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
195- enabled = True ,
196184 )
197185
198186 @parametrize
0 commit comments