Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#784)
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 f30af85 commit 547f900
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/api_resources/alerting/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,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:4274"
)
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
policy = client.alerting.policies.get(
Expand All @@ -382,6 +385,9 @@ def test_method_get(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[Policy], policy, path=["response"])

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

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274"
)
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.alerting.policies.with_streaming_response.get(
Expand All @@ -408,6 +417,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:4274"
)
@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 @@ -777,6 +789,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:4274"
)
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
policy = await async_client.alerting.policies.get(
Expand All @@ -785,6 +800,9 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(Optional[Policy], policy, path=["response"])

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

@pytest.mark.skip(
reason="prism errors - https://github.com/cloudflare/cloudflare-python/actions/runs/9327225061/job/25676826349?pr=482#step:5:4274"
)
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.alerting.policies.with_streaming_response.get(
Expand All @@ -811,6 +832,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:4274"
)
@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

0 comments on commit 547f900

Please sign in to comment.