Skip to content

Commit

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

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_method_create_overload_1(self, client: Cloudflare) -> None:
member = client.accounts.members.create(
Expand All @@ -37,6 +38,7 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> None:
member = client.accounts.members.create(
Expand All @@ -51,6 +53,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
response = client.accounts.members.with_raw_response.create(
Expand All @@ -68,6 +71,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
member = response.parse()
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
with client.accounts.members.with_streaming_response.create(
Expand All @@ -87,6 +91,7 @@ def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -100,6 +105,7 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
],
)

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_method_create_overload_2(self, client: Cloudflare) -> None:
member = client.accounts.members.create(
Expand Down Expand Up @@ -146,6 +152,7 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> None:
member = client.accounts.members.create(
Expand Down Expand Up @@ -193,6 +200,7 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
response = client.accounts.members.with_raw_response.create(
Expand Down Expand Up @@ -243,6 +251,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
member = response.parse()
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
with client.accounts.members.with_streaming_response.create(
Expand Down Expand Up @@ -295,6 +304,7 @@ def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_path_params_create_overload_2(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand Down Expand Up @@ -699,6 +709,7 @@ def test_path_params_list(self, client: Cloudflare) -> None:
account_id="",
)

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
member = client.accounts.members.delete(
Expand All @@ -707,6 +718,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.accounts.members.with_raw_response.delete(
Expand All @@ -719,6 +731,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
member = response.parse()
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.accounts.members.with_streaming_response.delete(
Expand All @@ -733,6 +746,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -747,6 +761,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
account_id="eb78d65290b24279ba6f44721b3ea3c4",
)

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
member = client.accounts.members.get(
Expand All @@ -755,6 +770,7 @@ def test_method_get(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[MemberGetResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.accounts.members.with_raw_response.get(
Expand All @@ -767,6 +783,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
member = response.parse()
assert_matches_type(Optional[MemberGetResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.accounts.members.with_streaming_response.get(
Expand All @@ -781,6 +798,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -799,6 +817,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(reason="HTTP 422 error from prism")
@parametrize
async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> None:
member = await async_client.accounts.members.create(
Expand All @@ -812,6 +831,7 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) ->
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_method_create_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
member = await async_client.accounts.members.create(
Expand All @@ -826,6 +846,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
response = await async_client.accounts.members.with_raw_response.create(
Expand All @@ -843,6 +864,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar
member = await response.parse()
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_streaming_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
async with async_client.accounts.members.with_streaming_response.create(
Expand All @@ -862,6 +884,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncClo

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -875,6 +898,7 @@ async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare
],
)

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> None:
member = await async_client.accounts.members.create(
Expand Down Expand Up @@ -921,6 +945,7 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) ->
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None:
member = await async_client.accounts.members.create(
Expand Down Expand Up @@ -968,6 +993,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
)
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
response = await async_client.accounts.members.with_raw_response.create(
Expand Down Expand Up @@ -1018,6 +1044,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar
member = await response.parse()
assert_matches_type(Optional[MemberCreateResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_streaming_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
async with async_client.accounts.members.with_streaming_response.create(
Expand Down Expand Up @@ -1070,6 +1097,7 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncClo

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand Down Expand Up @@ -1474,6 +1502,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
account_id="",
)

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
member = await async_client.accounts.members.delete(
Expand All @@ -1482,6 +1511,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.accounts.members.with_raw_response.delete(
Expand All @@ -1494,6 +1524,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(reason="HTTP 422 error from prism")
@parametrize
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.accounts.members.with_streaming_response.delete(
Expand All @@ -1508,6 +1539,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -1522,6 +1554,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
account_id="eb78d65290b24279ba6f44721b3ea3c4",
)

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
member = await async_client.accounts.members.get(
Expand All @@ -1530,6 +1563,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(Optional[MemberGetResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.accounts.members.with_raw_response.get(
Expand All @@ -1542,6 +1576,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
member = await response.parse()
assert_matches_type(Optional[MemberGetResponse], member, path=["response"])

@pytest.mark.skip(reason="HTTP 422 error from prism")
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.accounts.members.with_streaming_response.get(
Expand All @@ -1556,6 +1591,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No

assert cast(Any, response.is_closed) is True

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

0 comments on commit 7e2cd67

Please sign in to comment.