Skip to content

Commit d2f86b6

Browse files
chore: updates (#2260)
1 parent 7f6dfe2 commit d2f86b6

File tree

82 files changed

+0
-2338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+0
-2338
lines changed

tests/api_resources/test_zones.py

-34
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
class TestZones:
2222
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2323

24-
@pytest.mark.skip(reason="TODO: investigate broken test")
2524
@parametrize
2625
def test_method_create(self, client: Cloudflare) -> None:
2726
zone = client.zones.create(
@@ -30,7 +29,6 @@ def test_method_create(self, client: Cloudflare) -> None:
3029
)
3130
assert_matches_type(Optional[Zone], zone, path=["response"])
3231

33-
@pytest.mark.skip(reason="TODO: investigate broken test")
3432
@parametrize
3533
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3634
zone = client.zones.create(
@@ -40,7 +38,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4038
)
4139
assert_matches_type(Optional[Zone], zone, path=["response"])
4240

43-
@pytest.mark.skip(reason="TODO: investigate broken test")
4441
@parametrize
4542
def test_raw_response_create(self, client: Cloudflare) -> None:
4643
response = client.zones.with_raw_response.create(
@@ -53,7 +50,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
5350
zone = response.parse()
5451
assert_matches_type(Optional[Zone], zone, path=["response"])
5552

56-
@pytest.mark.skip(reason="TODO: investigate broken test")
5753
@parametrize
5854
def test_streaming_response_create(self, client: Cloudflare) -> None:
5955
with client.zones.with_streaming_response.create(
@@ -68,13 +64,11 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
6864

6965
assert cast(Any, response.is_closed) is True
7066

71-
@pytest.mark.skip(reason="TODO: investigate broken test")
7267
@parametrize
7368
def test_method_list(self, client: Cloudflare) -> None:
7469
zone = client.zones.list()
7570
assert_matches_type(SyncV4PagePaginationArray[Zone], zone, path=["response"])
7671

77-
@pytest.mark.skip(reason="TODO: investigate broken test")
7872
@parametrize
7973
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
8074
zone = client.zones.list(
@@ -92,7 +86,6 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
9286
)
9387
assert_matches_type(SyncV4PagePaginationArray[Zone], zone, path=["response"])
9488

95-
@pytest.mark.skip(reason="TODO: investigate broken test")
9689
@parametrize
9790
def test_raw_response_list(self, client: Cloudflare) -> None:
9891
response = client.zones.with_raw_response.list()
@@ -102,7 +95,6 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
10295
zone = response.parse()
10396
assert_matches_type(SyncV4PagePaginationArray[Zone], zone, path=["response"])
10497

105-
@pytest.mark.skip(reason="TODO: investigate broken test")
10698
@parametrize
10799
def test_streaming_response_list(self, client: Cloudflare) -> None:
108100
with client.zones.with_streaming_response.list() as response:
@@ -156,15 +148,13 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
156148
zone_id="",
157149
)
158150

159-
@pytest.mark.skip(reason="TODO: investigate broken test")
160151
@parametrize
161152
def test_method_edit(self, client: Cloudflare) -> None:
162153
zone = client.zones.edit(
163154
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
164155
)
165156
assert_matches_type(Optional[Zone], zone, path=["response"])
166157

167-
@pytest.mark.skip(reason="TODO: investigate broken test")
168158
@parametrize
169159
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
170160
zone = client.zones.edit(
@@ -174,7 +164,6 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
174164
)
175165
assert_matches_type(Optional[Zone], zone, path=["response"])
176166

177-
@pytest.mark.skip(reason="TODO: investigate broken test")
178167
@parametrize
179168
def test_raw_response_edit(self, client: Cloudflare) -> None:
180169
response = client.zones.with_raw_response.edit(
@@ -186,7 +175,6 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
186175
zone = response.parse()
187176
assert_matches_type(Optional[Zone], zone, path=["response"])
188177

189-
@pytest.mark.skip(reason="TODO: investigate broken test")
190178
@parametrize
191179
def test_streaming_response_edit(self, client: Cloudflare) -> None:
192180
with client.zones.with_streaming_response.edit(
@@ -200,23 +188,20 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
200188

201189
assert cast(Any, response.is_closed) is True
202190

203-
@pytest.mark.skip(reason="TODO: investigate broken test")
204191
@parametrize
205192
def test_path_params_edit(self, client: Cloudflare) -> None:
206193
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
207194
client.zones.with_raw_response.edit(
208195
zone_id="",
209196
)
210197

211-
@pytest.mark.skip(reason="TODO: investigate broken test")
212198
@parametrize
213199
def test_method_get(self, client: Cloudflare) -> None:
214200
zone = client.zones.get(
215201
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
216202
)
217203
assert_matches_type(Optional[Zone], zone, path=["response"])
218204

219-
@pytest.mark.skip(reason="TODO: investigate broken test")
220205
@parametrize
221206
def test_raw_response_get(self, client: Cloudflare) -> None:
222207
response = client.zones.with_raw_response.get(
@@ -228,7 +213,6 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
228213
zone = response.parse()
229214
assert_matches_type(Optional[Zone], zone, path=["response"])
230215

231-
@pytest.mark.skip(reason="TODO: investigate broken test")
232216
@parametrize
233217
def test_streaming_response_get(self, client: Cloudflare) -> None:
234218
with client.zones.with_streaming_response.get(
@@ -242,7 +226,6 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
242226

243227
assert cast(Any, response.is_closed) is True
244228

245-
@pytest.mark.skip(reason="TODO: investigate broken test")
246229
@parametrize
247230
def test_path_params_get(self, client: Cloudflare) -> None:
248231
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:
254237
class TestAsyncZones:
255238
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
256239

257-
@pytest.mark.skip(reason="TODO: investigate broken test")
258240
@parametrize
259241
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
260242
zone = await async_client.zones.create(
@@ -263,7 +245,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
263245
)
264246
assert_matches_type(Optional[Zone], zone, path=["response"])
265247

266-
@pytest.mark.skip(reason="TODO: investigate broken test")
267248
@parametrize
268249
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
269250
zone = await async_client.zones.create(
@@ -273,7 +254,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
273254
)
274255
assert_matches_type(Optional[Zone], zone, path=["response"])
275256

276-
@pytest.mark.skip(reason="TODO: investigate broken test")
277257
@parametrize
278258
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
279259
response = await async_client.zones.with_raw_response.create(
@@ -286,7 +266,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
286266
zone = await response.parse()
287267
assert_matches_type(Optional[Zone], zone, path=["response"])
288268

289-
@pytest.mark.skip(reason="TODO: investigate broken test")
290269
@parametrize
291270
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
292271
async with async_client.zones.with_streaming_response.create(
@@ -301,13 +280,11 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
301280

302281
assert cast(Any, response.is_closed) is True
303282

304-
@pytest.mark.skip(reason="TODO: investigate broken test")
305283
@parametrize
306284
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
307285
zone = await async_client.zones.list()
308286
assert_matches_type(AsyncV4PagePaginationArray[Zone], zone, path=["response"])
309287

310-
@pytest.mark.skip(reason="TODO: investigate broken test")
311288
@parametrize
312289
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
313290
zone = await async_client.zones.list(
@@ -325,7 +302,6 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
325302
)
326303
assert_matches_type(AsyncV4PagePaginationArray[Zone], zone, path=["response"])
327304

328-
@pytest.mark.skip(reason="TODO: investigate broken test")
329305
@parametrize
330306
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
331307
response = await async_client.zones.with_raw_response.list()
@@ -335,7 +311,6 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
335311
zone = await response.parse()
336312
assert_matches_type(AsyncV4PagePaginationArray[Zone], zone, path=["response"])
337313

338-
@pytest.mark.skip(reason="TODO: investigate broken test")
339314
@parametrize
340315
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
341316
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:
389364
zone_id="",
390365
)
391366

392-
@pytest.mark.skip(reason="TODO: investigate broken test")
393367
@parametrize
394368
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
395369
zone = await async_client.zones.edit(
396370
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
397371
)
398372
assert_matches_type(Optional[Zone], zone, path=["response"])
399373

400-
@pytest.mark.skip(reason="TODO: investigate broken test")
401374
@parametrize
402375
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
403376
zone = await async_client.zones.edit(
@@ -407,7 +380,6 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
407380
)
408381
assert_matches_type(Optional[Zone], zone, path=["response"])
409382

410-
@pytest.mark.skip(reason="TODO: investigate broken test")
411383
@parametrize
412384
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
413385
response = await async_client.zones.with_raw_response.edit(
@@ -419,7 +391,6 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
419391
zone = await response.parse()
420392
assert_matches_type(Optional[Zone], zone, path=["response"])
421393

422-
@pytest.mark.skip(reason="TODO: investigate broken test")
423394
@parametrize
424395
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
425396
async with async_client.zones.with_streaming_response.edit(
@@ -433,23 +404,20 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
433404

434405
assert cast(Any, response.is_closed) is True
435406

436-
@pytest.mark.skip(reason="TODO: investigate broken test")
437407
@parametrize
438408
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
439409
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
440410
await async_client.zones.with_raw_response.edit(
441411
zone_id="",
442412
)
443413

444-
@pytest.mark.skip(reason="TODO: investigate broken test")
445414
@parametrize
446415
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
447416
zone = await async_client.zones.get(
448417
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
449418
)
450419
assert_matches_type(Optional[Zone], zone, path=["response"])
451420

452-
@pytest.mark.skip(reason="TODO: investigate broken test")
453421
@parametrize
454422
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
455423
response = await async_client.zones.with_raw_response.get(
@@ -461,7 +429,6 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
461429
zone = await response.parse()
462430
assert_matches_type(Optional[Zone], zone, path=["response"])
463431

464-
@pytest.mark.skip(reason="TODO: investigate broken test")
465432
@parametrize
466433
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
467434
async with async_client.zones.with_streaming_response.get(
@@ -475,7 +442,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
475442

476443
assert cast(Any, response.is_closed) is True
477444

478-
@pytest.mark.skip(reason="TODO: investigate broken test")
479445
@parametrize
480446
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
481447
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):

tests/api_resources/zero_trust/access/applications/policy_tests/test_users.py

-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
class TestUsers:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip(reason="TODO: investigate broken test")
2120
@parametrize
2221
def test_method_list(self, client: Cloudflare) -> None:
2322
user = client.zero_trust.access.applications.policy_tests.users.list(
@@ -26,7 +25,6 @@ def test_method_list(self, client: Cloudflare) -> None:
2625
)
2726
assert_matches_type(UserListResponse, user, path=["response"])
2827

29-
@pytest.mark.skip(reason="TODO: investigate broken test")
3028
@parametrize
3129
def test_raw_response_list(self, client: Cloudflare) -> None:
3230
response = client.zero_trust.access.applications.policy_tests.users.with_raw_response.list(
@@ -39,7 +37,6 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
3937
user = response.parse()
4038
assert_matches_type(UserListResponse, user, path=["response"])
4139

42-
@pytest.mark.skip(reason="TODO: investigate broken test")
4340
@parametrize
4441
def test_streaming_response_list(self, client: Cloudflare) -> None:
4542
with client.zero_trust.access.applications.policy_tests.users.with_streaming_response.list(
@@ -54,7 +51,6 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
5451

5552
assert cast(Any, response.is_closed) is True
5653

57-
@pytest.mark.skip(reason="TODO: investigate broken test")
5854
@parametrize
5955
def test_path_params_list(self, client: Cloudflare) -> None:
6056
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -73,7 +69,6 @@ def test_path_params_list(self, client: Cloudflare) -> None:
7369
class TestAsyncUsers:
7470
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
7571

76-
@pytest.mark.skip(reason="TODO: investigate broken test")
7772
@parametrize
7873
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
7974
user = await async_client.zero_trust.access.applications.policy_tests.users.list(
@@ -82,7 +77,6 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
8277
)
8378
assert_matches_type(UserListResponse, user, path=["response"])
8479

85-
@pytest.mark.skip(reason="TODO: investigate broken test")
8680
@parametrize
8781
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
8882
response = await async_client.zero_trust.access.applications.policy_tests.users.with_raw_response.list(
@@ -95,7 +89,6 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
9589
user = await response.parse()
9690
assert_matches_type(UserListResponse, user, path=["response"])
9791

98-
@pytest.mark.skip(reason="TODO: investigate broken test")
9992
@parametrize
10093
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
10194
async with async_client.zero_trust.access.applications.policy_tests.users.with_streaming_response.list(
@@ -110,7 +103,6 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
110103

111104
assert cast(Any, response.is_closed) is True
112105

113-
@pytest.mark.skip(reason="TODO: investigate broken test")
114106
@parametrize
115107
async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
116108
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

0 commit comments

Comments
 (0)