@@ -22,7 +22,6 @@ def test_method_create(self, client: Cloudflare) -> None:
22
22
subdomain = client .workers .scripts .subdomain .create (
23
23
script_name = "this-is_my_script-01" ,
24
24
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
25
- enabled = True ,
26
25
)
27
26
assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
28
27
@@ -32,7 +31,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
32
31
script_name = "this-is_my_script-01" ,
33
32
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
34
33
enabled = True ,
35
- previews_enabled = True ,
36
34
)
37
35
assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
38
36
@@ -41,7 +39,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
41
39
response = client .workers .scripts .subdomain .with_raw_response .create (
42
40
script_name = "this-is_my_script-01" ,
43
41
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
44
- enabled = True ,
45
42
)
46
43
47
44
assert response .is_closed is True
@@ -54,7 +51,6 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
54
51
with client .workers .scripts .subdomain .with_streaming_response .create (
55
52
script_name = "this-is_my_script-01" ,
56
53
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
57
- enabled = True ,
58
54
) as response :
59
55
assert not response .is_closed
60
56
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -70,14 +66,12 @@ def test_path_params_create(self, client: Cloudflare) -> None:
70
66
client .workers .scripts .subdomain .with_raw_response .create (
71
67
script_name = "this-is_my_script-01" ,
72
68
account_id = "" ,
73
- enabled = True ,
74
69
)
75
70
76
71
with pytest .raises (ValueError , match = r"Expected a non-empty value for `script_name` but received ''" ):
77
72
client .workers .scripts .subdomain .with_raw_response .create (
78
73
script_name = "" ,
79
74
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
80
- enabled = True ,
81
75
)
82
76
83
77
@parametrize
@@ -137,7 +131,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
137
131
subdomain = await async_client .workers .scripts .subdomain .create (
138
132
script_name = "this-is_my_script-01" ,
139
133
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
140
- enabled = True ,
141
134
)
142
135
assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
143
136
@@ -147,7 +140,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
147
140
script_name = "this-is_my_script-01" ,
148
141
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
149
142
enabled = True ,
150
- previews_enabled = True ,
151
143
)
152
144
assert_matches_type (SubdomainCreateResponse , subdomain , path = ["response" ])
153
145
@@ -156,7 +148,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
156
148
response = await async_client .workers .scripts .subdomain .with_raw_response .create (
157
149
script_name = "this-is_my_script-01" ,
158
150
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
159
- enabled = True ,
160
151
)
161
152
162
153
assert response .is_closed is True
@@ -169,7 +160,6 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
169
160
async with async_client .workers .scripts .subdomain .with_streaming_response .create (
170
161
script_name = "this-is_my_script-01" ,
171
162
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
172
- enabled = True ,
173
163
) as response :
174
164
assert not response .is_closed
175
165
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:
185
175
await async_client .workers .scripts .subdomain .with_raw_response .create (
186
176
script_name = "this-is_my_script-01" ,
187
177
account_id = "" ,
188
- enabled = True ,
189
178
)
190
179
191
180
with pytest .raises (ValueError , match = r"Expected a non-empty value for `script_name` but received ''" ):
192
181
await async_client .workers .scripts .subdomain .with_raw_response .create (
193
182
script_name = "" ,
194
183
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
195
- enabled = True ,
196
184
)
197
185
198
186
@parametrize
0 commit comments