Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#345)
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 3ba27b3 commit 50a9207
Show file tree
Hide file tree
Showing 469 changed files with 12,366 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tests/api_resources/accounts/test_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
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 @@ -36,6 +37,7 @@ 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 @@ -50,6 +52,7 @@ 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 @@ -67,6 +70,7 @@ 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 @@ -86,6 +90,7 @@ 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 @@ -99,6 +104,7 @@ 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 @@ -116,6 +122,7 @@ 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 @@ -135,6 +142,7 @@ 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 @@ -148,13 +156,15 @@ 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 @@ -167,6 +177,7 @@ 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 @@ -178,6 +189,7 @@ 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 @@ -191,6 +203,7 @@ 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 @@ -200,6 +213,7 @@ 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 @@ -213,6 +227,7 @@ 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 @@ -228,6 +243,7 @@ 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 @@ -237,6 +253,7 @@ 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 @@ -245,6 +262,7 @@ 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 @@ -257,6 +275,7 @@ 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 @@ -271,6 +290,7 @@ 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 @@ -283,6 +303,7 @@ 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 @@ -296,6 +317,7 @@ 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 @@ -310,6 +332,7 @@ 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 @@ -327,6 +350,7 @@ 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 @@ -346,6 +370,7 @@ 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 @@ -359,6 +384,7 @@ 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 @@ -376,6 +402,7 @@ 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 @@ -395,6 +422,7 @@ 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 @@ -408,13 +436,15 @@ 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 @@ -427,6 +457,7 @@ 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 @@ -438,6 +469,7 @@ 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 @@ -451,6 +483,7 @@ 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 @@ -460,6 +493,7 @@ 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 @@ -473,6 +507,7 @@ 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 @@ -488,6 +523,7 @@ 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 @@ -497,6 +533,7 @@ 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 @@ -505,6 +542,7 @@ 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 @@ -517,6 +555,7 @@ 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 @@ -531,6 +570,7 @@ 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 50a9207

Please sign in to comment.