Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent ac1e643 commit 3ba27b3
Show file tree
Hide file tree
Showing 469 changed files with 0 additions and 12,366 deletions.
40 changes: 0 additions & 40 deletions tests/api_resources/accounts/test_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
class TestMembers:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip()
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
member = client.accounts.members.create(
Expand All @@ -37,7 +36,6 @@ def test_method_create(self, client: Cloudflare) -> None:
)
assert_matches_type(UserWithInviteCode, member, path=["response"])

@pytest.mark.skip()
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
member = client.accounts.members.create(
Expand All @@ -52,7 +50,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
)
assert_matches_type(UserWithInviteCode, member, path=["response"])

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

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

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
member = client.accounts.members.update(
Expand All @@ -104,7 +99,6 @@ def test_method_update(self, client: Cloudflare) -> None:
)
assert_matches_type(Member, member, path=["response"])

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

assert cast(Any, response.is_closed) is True

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

@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
member = client.accounts.members.get(
Expand All @@ -262,7 +245,6 @@ def test_method_get(self, client: Cloudflare) -> None:
)
assert_matches_type(Member, member, path=["response"])

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

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

0 comments on commit 3ba27b3

Please sign in to comment.