21
21
class TestZones :
22
22
parametrize = pytest .mark .parametrize ("client" , [False , True ], indirect = True , ids = ["loose" , "strict" ])
23
23
24
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
25
24
@parametrize
26
25
def test_method_create (self , client : Cloudflare ) -> None :
27
26
zone = client .zones .create (
@@ -30,7 +29,6 @@ def test_method_create(self, client: Cloudflare) -> None:
30
29
)
31
30
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
32
31
33
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
34
32
@parametrize
35
33
def test_method_create_with_all_params (self , client : Cloudflare ) -> None :
36
34
zone = client .zones .create (
@@ -40,7 +38,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
40
38
)
41
39
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
42
40
43
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
44
41
@parametrize
45
42
def test_raw_response_create (self , client : Cloudflare ) -> None :
46
43
response = client .zones .with_raw_response .create (
@@ -53,7 +50,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
53
50
zone = response .parse ()
54
51
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
55
52
56
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
57
53
@parametrize
58
54
def test_streaming_response_create (self , client : Cloudflare ) -> None :
59
55
with client .zones .with_streaming_response .create (
@@ -68,13 +64,11 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
68
64
69
65
assert cast (Any , response .is_closed ) is True
70
66
71
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
72
67
@parametrize
73
68
def test_method_list (self , client : Cloudflare ) -> None :
74
69
zone = client .zones .list ()
75
70
assert_matches_type (SyncV4PagePaginationArray [Zone ], zone , path = ["response" ])
76
71
77
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
78
72
@parametrize
79
73
def test_method_list_with_all_params (self , client : Cloudflare ) -> None :
80
74
zone = client .zones .list (
@@ -92,7 +86,6 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
92
86
)
93
87
assert_matches_type (SyncV4PagePaginationArray [Zone ], zone , path = ["response" ])
94
88
95
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
96
89
@parametrize
97
90
def test_raw_response_list (self , client : Cloudflare ) -> None :
98
91
response = client .zones .with_raw_response .list ()
@@ -102,7 +95,6 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
102
95
zone = response .parse ()
103
96
assert_matches_type (SyncV4PagePaginationArray [Zone ], zone , path = ["response" ])
104
97
105
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
106
98
@parametrize
107
99
def test_streaming_response_list (self , client : Cloudflare ) -> None :
108
100
with client .zones .with_streaming_response .list () as response :
@@ -156,15 +148,13 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
156
148
zone_id = "" ,
157
149
)
158
150
159
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
160
151
@parametrize
161
152
def test_method_edit (self , client : Cloudflare ) -> None :
162
153
zone = client .zones .edit (
163
154
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
164
155
)
165
156
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
166
157
167
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
168
158
@parametrize
169
159
def test_method_edit_with_all_params (self , client : Cloudflare ) -> None :
170
160
zone = client .zones .edit (
@@ -174,7 +164,6 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
174
164
)
175
165
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
176
166
177
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
178
167
@parametrize
179
168
def test_raw_response_edit (self , client : Cloudflare ) -> None :
180
169
response = client .zones .with_raw_response .edit (
@@ -186,7 +175,6 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
186
175
zone = response .parse ()
187
176
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
188
177
189
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
190
178
@parametrize
191
179
def test_streaming_response_edit (self , client : Cloudflare ) -> None :
192
180
with client .zones .with_streaming_response .edit (
@@ -200,23 +188,20 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
200
188
201
189
assert cast (Any , response .is_closed ) is True
202
190
203
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
204
191
@parametrize
205
192
def test_path_params_edit (self , client : Cloudflare ) -> None :
206
193
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
207
194
client .zones .with_raw_response .edit (
208
195
zone_id = "" ,
209
196
)
210
197
211
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
212
198
@parametrize
213
199
def test_method_get (self , client : Cloudflare ) -> None :
214
200
zone = client .zones .get (
215
201
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
216
202
)
217
203
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
218
204
219
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
220
205
@parametrize
221
206
def test_raw_response_get (self , client : Cloudflare ) -> None :
222
207
response = client .zones .with_raw_response .get (
@@ -228,7 +213,6 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
228
213
zone = response .parse ()
229
214
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
230
215
231
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
232
216
@parametrize
233
217
def test_streaming_response_get (self , client : Cloudflare ) -> None :
234
218
with client .zones .with_streaming_response .get (
@@ -242,7 +226,6 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
242
226
243
227
assert cast (Any , response .is_closed ) is True
244
228
245
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
246
229
@parametrize
247
230
def test_path_params_get (self , client : Cloudflare ) -> None :
248
231
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
@@ -254,7 +237,6 @@ def test_path_params_get(self, client: Cloudflare) -> None:
254
237
class TestAsyncZones :
255
238
parametrize = pytest .mark .parametrize ("async_client" , [False , True ], indirect = True , ids = ["loose" , "strict" ])
256
239
257
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
258
240
@parametrize
259
241
async def test_method_create (self , async_client : AsyncCloudflare ) -> None :
260
242
zone = await async_client .zones .create (
@@ -263,7 +245,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
263
245
)
264
246
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
265
247
266
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
267
248
@parametrize
268
249
async def test_method_create_with_all_params (self , async_client : AsyncCloudflare ) -> None :
269
250
zone = await async_client .zones .create (
@@ -273,7 +254,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
273
254
)
274
255
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
275
256
276
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
277
257
@parametrize
278
258
async def test_raw_response_create (self , async_client : AsyncCloudflare ) -> None :
279
259
response = await async_client .zones .with_raw_response .create (
@@ -286,7 +266,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
286
266
zone = await response .parse ()
287
267
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
288
268
289
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
290
269
@parametrize
291
270
async def test_streaming_response_create (self , async_client : AsyncCloudflare ) -> None :
292
271
async with async_client .zones .with_streaming_response .create (
@@ -301,13 +280,11 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
301
280
302
281
assert cast (Any , response .is_closed ) is True
303
282
304
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
305
283
@parametrize
306
284
async def test_method_list (self , async_client : AsyncCloudflare ) -> None :
307
285
zone = await async_client .zones .list ()
308
286
assert_matches_type (AsyncV4PagePaginationArray [Zone ], zone , path = ["response" ])
309
287
310
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
311
288
@parametrize
312
289
async def test_method_list_with_all_params (self , async_client : AsyncCloudflare ) -> None :
313
290
zone = await async_client .zones .list (
@@ -325,7 +302,6 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
325
302
)
326
303
assert_matches_type (AsyncV4PagePaginationArray [Zone ], zone , path = ["response" ])
327
304
328
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
329
305
@parametrize
330
306
async def test_raw_response_list (self , async_client : AsyncCloudflare ) -> None :
331
307
response = await async_client .zones .with_raw_response .list ()
@@ -335,7 +311,6 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
335
311
zone = await response .parse ()
336
312
assert_matches_type (AsyncV4PagePaginationArray [Zone ], zone , path = ["response" ])
337
313
338
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
339
314
@parametrize
340
315
async def test_streaming_response_list (self , async_client : AsyncCloudflare ) -> None :
341
316
async with async_client .zones .with_streaming_response .list () as response :
@@ -389,15 +364,13 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
389
364
zone_id = "" ,
390
365
)
391
366
392
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
393
367
@parametrize
394
368
async def test_method_edit (self , async_client : AsyncCloudflare ) -> None :
395
369
zone = await async_client .zones .edit (
396
370
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
397
371
)
398
372
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
399
373
400
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
401
374
@parametrize
402
375
async def test_method_edit_with_all_params (self , async_client : AsyncCloudflare ) -> None :
403
376
zone = await async_client .zones .edit (
@@ -407,7 +380,6 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
407
380
)
408
381
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
409
382
410
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
411
383
@parametrize
412
384
async def test_raw_response_edit (self , async_client : AsyncCloudflare ) -> None :
413
385
response = await async_client .zones .with_raw_response .edit (
@@ -419,7 +391,6 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
419
391
zone = await response .parse ()
420
392
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
421
393
422
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
423
394
@parametrize
424
395
async def test_streaming_response_edit (self , async_client : AsyncCloudflare ) -> None :
425
396
async with async_client .zones .with_streaming_response .edit (
@@ -433,23 +404,20 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
433
404
434
405
assert cast (Any , response .is_closed ) is True
435
406
436
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
437
407
@parametrize
438
408
async def test_path_params_edit (self , async_client : AsyncCloudflare ) -> None :
439
409
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
440
410
await async_client .zones .with_raw_response .edit (
441
411
zone_id = "" ,
442
412
)
443
413
444
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
445
414
@parametrize
446
415
async def test_method_get (self , async_client : AsyncCloudflare ) -> None :
447
416
zone = await async_client .zones .get (
448
417
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
449
418
)
450
419
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
451
420
452
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
453
421
@parametrize
454
422
async def test_raw_response_get (self , async_client : AsyncCloudflare ) -> None :
455
423
response = await async_client .zones .with_raw_response .get (
@@ -461,7 +429,6 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
461
429
zone = await response .parse ()
462
430
assert_matches_type (Optional [Zone ], zone , path = ["response" ])
463
431
464
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
465
432
@parametrize
466
433
async def test_streaming_response_get (self , async_client : AsyncCloudflare ) -> None :
467
434
async with async_client .zones .with_streaming_response .get (
@@ -475,7 +442,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
475
442
476
443
assert cast (Any , response .is_closed ) is True
477
444
478
- @pytest .mark .skip (reason = "TODO: investigate broken test" )
479
445
@parametrize
480
446
async def test_path_params_get (self , async_client : AsyncCloudflare ) -> None :
481
447
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
0 commit comments