Skip to content

Commit 3ba27b3

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#344)
1 parent ac1e643 commit 3ba27b3

File tree

469 files changed

+0
-12366
lines changed

Some content is hidden

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

469 files changed

+0
-12366
lines changed

tests/api_resources/accounts/test_members.py

-40
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
class TestMembers:
2424
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2525

26-
@pytest.mark.skip()
2726
@parametrize
2827
def test_method_create(self, client: Cloudflare) -> None:
2928
member = client.accounts.members.create(
@@ -37,7 +36,6 @@ def test_method_create(self, client: Cloudflare) -> None:
3736
)
3837
assert_matches_type(UserWithInviteCode, member, path=["response"])
3938

40-
@pytest.mark.skip()
4139
@parametrize
4240
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
4341
member = client.accounts.members.create(
@@ -52,7 +50,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
5250
)
5351
assert_matches_type(UserWithInviteCode, member, path=["response"])
5452

55-
@pytest.mark.skip()
5653
@parametrize
5754
def test_raw_response_create(self, client: Cloudflare) -> None:
5855
response = client.accounts.members.with_raw_response.create(
@@ -70,7 +67,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
7067
member = response.parse()
7168
assert_matches_type(UserWithInviteCode, member, path=["response"])
7269

73-
@pytest.mark.skip()
7470
@parametrize
7571
def test_streaming_response_create(self, client: Cloudflare) -> None:
7672
with client.accounts.members.with_streaming_response.create(
@@ -90,7 +86,6 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
9086

9187
assert cast(Any, response.is_closed) is True
9288

93-
@pytest.mark.skip()
9489
@parametrize
9590
def test_method_update(self, client: Cloudflare) -> None:
9691
member = client.accounts.members.update(
@@ -104,7 +99,6 @@ def test_method_update(self, client: Cloudflare) -> None:
10499
)
105100
assert_matches_type(Member, member, path=["response"])
106101

107-
@pytest.mark.skip()
108102
@parametrize
109103
def test_raw_response_update(self, client: Cloudflare) -> None:
110104
response = client.accounts.members.with_raw_response.update(
@@ -122,7 +116,6 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
122116
member = response.parse()
123117
assert_matches_type(Member, member, path=["response"])
124118

125-
@pytest.mark.skip()
126119
@parametrize
127120
def test_streaming_response_update(self, client: Cloudflare) -> None:
128121
with client.accounts.members.with_streaming_response.update(
@@ -142,7 +135,6 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
142135

143136
assert cast(Any, response.is_closed) is True
144137

145-
@pytest.mark.skip()
146138
@parametrize
147139
def test_path_params_update(self, client: Cloudflare) -> None:
148140
with pytest.raises(ValueError, match=r"Expected a non-empty value for `member_id` but received ''"):
@@ -156,15 +148,13 @@ def test_path_params_update(self, client: Cloudflare) -> None:
156148
],
157149
)
158150

159-
@pytest.mark.skip()
160151
@parametrize
161152
def test_method_list(self, client: Cloudflare) -> None:
162153
member = client.accounts.members.list(
163154
account_id={},
164155
)
165156
assert_matches_type(SyncV4PagePaginationArray[MemberListResponse], member, path=["response"])
166157

167-
@pytest.mark.skip()
168158
@parametrize
169159
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
170160
member = client.accounts.members.list(
@@ -177,7 +167,6 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
177167
)
178168
assert_matches_type(SyncV4PagePaginationArray[MemberListResponse], member, path=["response"])
179169

180-
@pytest.mark.skip()
181170
@parametrize
182171
def test_raw_response_list(self, client: Cloudflare) -> None:
183172
response = client.accounts.members.with_raw_response.list(
@@ -189,7 +178,6 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
189178
member = response.parse()
190179
assert_matches_type(SyncV4PagePaginationArray[MemberListResponse], member, path=["response"])
191180

192-
@pytest.mark.skip()
193181
@parametrize
194182
def test_streaming_response_list(self, client: Cloudflare) -> None:
195183
with client.accounts.members.with_streaming_response.list(
@@ -203,7 +191,6 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
203191

204192
assert cast(Any, response.is_closed) is True
205193

206-
@pytest.mark.skip()
207194
@parametrize
208195
def test_method_delete(self, client: Cloudflare) -> None:
209196
member = client.accounts.members.delete(
@@ -213,7 +200,6 @@ def test_method_delete(self, client: Cloudflare) -> None:
213200
)
214201
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])
215202

216-
@pytest.mark.skip()
217203
@parametrize
218204
def test_raw_response_delete(self, client: Cloudflare) -> None:
219205
response = client.accounts.members.with_raw_response.delete(
@@ -227,7 +213,6 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
227213
member = response.parse()
228214
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])
229215

230-
@pytest.mark.skip()
231216
@parametrize
232217
def test_streaming_response_delete(self, client: Cloudflare) -> None:
233218
with client.accounts.members.with_streaming_response.delete(
@@ -243,7 +228,6 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
243228

244229
assert cast(Any, response.is_closed) is True
245230

246-
@pytest.mark.skip()
247231
@parametrize
248232
def test_path_params_delete(self, client: Cloudflare) -> None:
249233
with pytest.raises(ValueError, match=r"Expected a non-empty value for `member_id` but received ''"):
@@ -253,7 +237,6 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
253237
body={},
254238
)
255239

256-
@pytest.mark.skip()
257240
@parametrize
258241
def test_method_get(self, client: Cloudflare) -> None:
259242
member = client.accounts.members.get(
@@ -262,7 +245,6 @@ def test_method_get(self, client: Cloudflare) -> None:
262245
)
263246
assert_matches_type(Member, member, path=["response"])
264247

265-
@pytest.mark.skip()
266248
@parametrize
267249
def test_raw_response_get(self, client: Cloudflare) -> None:
268250
response = client.accounts.members.with_raw_response.get(
@@ -275,7 +257,6 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
275257
member = response.parse()
276258
assert_matches_type(Member, member, path=["response"])
277259

278-
@pytest.mark.skip()
279260
@parametrize
280261
def test_streaming_response_get(self, client: Cloudflare) -> None:
281262
with client.accounts.members.with_streaming_response.get(
@@ -290,7 +271,6 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
290271

291272
assert cast(Any, response.is_closed) is True
292273

293-
@pytest.mark.skip()
294274
@parametrize
295275
def test_path_params_get(self, client: Cloudflare) -> None:
296276
with pytest.raises(ValueError, match=r"Expected a non-empty value for `member_id` but received ''"):
@@ -303,7 +283,6 @@ def test_path_params_get(self, client: Cloudflare) -> None:
303283
class TestAsyncMembers:
304284
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
305285

306-
@pytest.mark.skip()
307286
@parametrize
308287
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
309288
member = await async_client.accounts.members.create(
@@ -317,7 +296,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
317296
)
318297
assert_matches_type(UserWithInviteCode, member, path=["response"])
319298

320-
@pytest.mark.skip()
321299
@parametrize
322300
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
323301
member = await async_client.accounts.members.create(
@@ -332,7 +310,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
332310
)
333311
assert_matches_type(UserWithInviteCode, member, path=["response"])
334312

335-
@pytest.mark.skip()
336313
@parametrize
337314
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
338315
response = await async_client.accounts.members.with_raw_response.create(
@@ -350,7 +327,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
350327
member = await response.parse()
351328
assert_matches_type(UserWithInviteCode, member, path=["response"])
352329

353-
@pytest.mark.skip()
354330
@parametrize
355331
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
356332
async with async_client.accounts.members.with_streaming_response.create(
@@ -370,7 +346,6 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
370346

371347
assert cast(Any, response.is_closed) is True
372348

373-
@pytest.mark.skip()
374349
@parametrize
375350
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
376351
member = await async_client.accounts.members.update(
@@ -384,7 +359,6 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
384359
)
385360
assert_matches_type(Member, member, path=["response"])
386361

387-
@pytest.mark.skip()
388362
@parametrize
389363
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
390364
response = await async_client.accounts.members.with_raw_response.update(
@@ -402,7 +376,6 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
402376
member = await response.parse()
403377
assert_matches_type(Member, member, path=["response"])
404378

405-
@pytest.mark.skip()
406379
@parametrize
407380
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
408381
async with async_client.accounts.members.with_streaming_response.update(
@@ -422,7 +395,6 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
422395

423396
assert cast(Any, response.is_closed) is True
424397

425-
@pytest.mark.skip()
426398
@parametrize
427399
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
428400
with pytest.raises(ValueError, match=r"Expected a non-empty value for `member_id` but received ''"):
@@ -436,15 +408,13 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
436408
],
437409
)
438410

439-
@pytest.mark.skip()
440411
@parametrize
441412
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
442413
member = await async_client.accounts.members.list(
443414
account_id={},
444415
)
445416
assert_matches_type(AsyncV4PagePaginationArray[MemberListResponse], member, path=["response"])
446417

447-
@pytest.mark.skip()
448418
@parametrize
449419
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
450420
member = await async_client.accounts.members.list(
@@ -457,7 +427,6 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
457427
)
458428
assert_matches_type(AsyncV4PagePaginationArray[MemberListResponse], member, path=["response"])
459429

460-
@pytest.mark.skip()
461430
@parametrize
462431
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
463432
response = await async_client.accounts.members.with_raw_response.list(
@@ -469,7 +438,6 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
469438
member = await response.parse()
470439
assert_matches_type(AsyncV4PagePaginationArray[MemberListResponse], member, path=["response"])
471440

472-
@pytest.mark.skip()
473441
@parametrize
474442
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
475443
async with async_client.accounts.members.with_streaming_response.list(
@@ -483,7 +451,6 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
483451

484452
assert cast(Any, response.is_closed) is True
485453

486-
@pytest.mark.skip()
487454
@parametrize
488455
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
489456
member = await async_client.accounts.members.delete(
@@ -493,7 +460,6 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
493460
)
494461
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])
495462

496-
@pytest.mark.skip()
497463
@parametrize
498464
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
499465
response = await async_client.accounts.members.with_raw_response.delete(
@@ -507,7 +473,6 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
507473
member = await response.parse()
508474
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])
509475

510-
@pytest.mark.skip()
511476
@parametrize
512477
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
513478
async with async_client.accounts.members.with_streaming_response.delete(
@@ -523,7 +488,6 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
523488

524489
assert cast(Any, response.is_closed) is True
525490

526-
@pytest.mark.skip()
527491
@parametrize
528492
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
529493
with pytest.raises(ValueError, match=r"Expected a non-empty value for `member_id` but received ''"):
@@ -533,7 +497,6 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
533497
body={},
534498
)
535499

536-
@pytest.mark.skip()
537500
@parametrize
538501
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
539502
member = await async_client.accounts.members.get(
@@ -542,7 +505,6 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
542505
)
543506
assert_matches_type(Member, member, path=["response"])
544507

545-
@pytest.mark.skip()
546508
@parametrize
547509
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
548510
response = await async_client.accounts.members.with_raw_response.get(
@@ -555,7 +517,6 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
555517
member = await response.parse()
556518
assert_matches_type(Member, member, path=["response"])
557519

558-
@pytest.mark.skip()
559520
@parametrize
560521
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
561522
async with async_client.accounts.members.with_streaming_response.get(
@@ -570,7 +531,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
570531

571532
assert cast(Any, response.is_closed) is True
572533

573-
@pytest.mark.skip()
574534
@parametrize
575535
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
576536
with pytest.raises(ValueError, match=r"Expected a non-empty value for `member_id` but received ''"):

0 commit comments

Comments
 (0)