@@ -23,15 +23,15 @@ class TestSchemaValidation:
23
23
def test_method_update (self , client : Cloudflare ) -> None :
24
24
schema_validation = client .api_gateway .settings .schema_validation .update (
25
25
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
26
- validation_default_mitigation_action = "none " ,
26
+ validation_default_mitigation_action = "block " ,
27
27
)
28
28
assert_matches_type (Settings , schema_validation , path = ["response" ])
29
29
30
30
@parametrize
31
31
def test_method_update_with_all_params (self , client : Cloudflare ) -> None :
32
32
schema_validation = client .api_gateway .settings .schema_validation .update (
33
33
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
34
- validation_default_mitigation_action = "none " ,
34
+ validation_default_mitigation_action = "block " ,
35
35
validation_override_mitigation_action = "none" ,
36
36
)
37
37
assert_matches_type (Settings , schema_validation , path = ["response" ])
@@ -40,7 +40,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
40
40
def test_raw_response_update (self , client : Cloudflare ) -> None :
41
41
response = client .api_gateway .settings .schema_validation .with_raw_response .update (
42
42
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
43
- validation_default_mitigation_action = "none " ,
43
+ validation_default_mitigation_action = "block " ,
44
44
)
45
45
46
46
assert response .is_closed is True
@@ -52,7 +52,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
52
52
def test_streaming_response_update (self , client : Cloudflare ) -> None :
53
53
with client .api_gateway .settings .schema_validation .with_streaming_response .update (
54
54
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
55
- validation_default_mitigation_action = "none " ,
55
+ validation_default_mitigation_action = "block " ,
56
56
) as response :
57
57
assert not response .is_closed
58
58
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -67,7 +67,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
67
67
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
68
68
client .api_gateway .settings .schema_validation .with_raw_response .update (
69
69
zone_id = "" ,
70
- validation_default_mitigation_action = "none " ,
70
+ validation_default_mitigation_action = "block " ,
71
71
)
72
72
73
73
@parametrize
@@ -81,7 +81,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
81
81
def test_method_edit_with_all_params (self , client : Cloudflare ) -> None :
82
82
schema_validation = client .api_gateway .settings .schema_validation .edit (
83
83
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
84
- validation_default_mitigation_action = "none " ,
84
+ validation_default_mitigation_action = "block " ,
85
85
validation_override_mitigation_action = "none" ,
86
86
)
87
87
assert_matches_type (Settings , schema_validation , path = ["response" ])
@@ -163,15 +163,15 @@ class TestAsyncSchemaValidation:
163
163
async def test_method_update (self , async_client : AsyncCloudflare ) -> None :
164
164
schema_validation = await async_client .api_gateway .settings .schema_validation .update (
165
165
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
166
- validation_default_mitigation_action = "none " ,
166
+ validation_default_mitigation_action = "block " ,
167
167
)
168
168
assert_matches_type (Settings , schema_validation , path = ["response" ])
169
169
170
170
@parametrize
171
171
async def test_method_update_with_all_params (self , async_client : AsyncCloudflare ) -> None :
172
172
schema_validation = await async_client .api_gateway .settings .schema_validation .update (
173
173
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
174
- validation_default_mitigation_action = "none " ,
174
+ validation_default_mitigation_action = "block " ,
175
175
validation_override_mitigation_action = "none" ,
176
176
)
177
177
assert_matches_type (Settings , schema_validation , path = ["response" ])
@@ -180,7 +180,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
180
180
async def test_raw_response_update (self , async_client : AsyncCloudflare ) -> None :
181
181
response = await async_client .api_gateway .settings .schema_validation .with_raw_response .update (
182
182
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
183
- validation_default_mitigation_action = "none " ,
183
+ validation_default_mitigation_action = "block " ,
184
184
)
185
185
186
186
assert response .is_closed is True
@@ -192,7 +192,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
192
192
async def test_streaming_response_update (self , async_client : AsyncCloudflare ) -> None :
193
193
async with async_client .api_gateway .settings .schema_validation .with_streaming_response .update (
194
194
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
195
- validation_default_mitigation_action = "none " ,
195
+ validation_default_mitigation_action = "block " ,
196
196
) as response :
197
197
assert not response .is_closed
198
198
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -207,7 +207,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
207
207
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
208
208
await async_client .api_gateway .settings .schema_validation .with_raw_response .update (
209
209
zone_id = "" ,
210
- validation_default_mitigation_action = "none " ,
210
+ validation_default_mitigation_action = "block " ,
211
211
)
212
212
213
213
@parametrize
@@ -221,7 +221,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
221
221
async def test_method_edit_with_all_params (self , async_client : AsyncCloudflare ) -> None :
222
222
schema_validation = await async_client .api_gateway .settings .schema_validation .edit (
223
223
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
224
- validation_default_mitigation_action = "none " ,
224
+ validation_default_mitigation_action = "block " ,
225
225
validation_override_mitigation_action = "none" ,
226
226
)
227
227
assert_matches_type (Settings , schema_validation , path = ["response" ])
0 commit comments