Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 4, 2024
1 parent c8dc5e3 commit f30af85
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/api_resources/alerting/destinations/test_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
webhook = client.alerting.destinations.webhooks.get(
Expand All @@ -272,6 +275,9 @@ def test_method_get(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[Webhooks], webhook, path=["response"])

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.alerting.destinations.webhooks.with_raw_response.get(
Expand All @@ -284,6 +290,9 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
webhook = response.parse()
assert_matches_type(Optional[Webhooks], webhook, path=["response"])

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.alerting.destinations.webhooks.with_streaming_response.get(
Expand All @@ -298,6 +307,9 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@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 Down Expand Up @@ -557,6 +569,9 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
webhook = await async_client.alerting.destinations.webhooks.get(
Expand All @@ -565,6 +580,9 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(Optional[Webhooks], webhook, path=["response"])

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.alerting.destinations.webhooks.with_raw_response.get(
Expand All @@ -577,6 +595,9 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
webhook = await response.parse()
assert_matches_type(Optional[Webhooks], webhook, path=["response"])

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.alerting.destinations.webhooks.with_streaming_response.get(
Expand All @@ -591,6 +612,9 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4291"
)
@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 f30af85

Please sign in to comment.