Skip to content

Commit

Permalink
feat(dlp): skip tests for entries update due to HTTP 422 in prism (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 7, 2025
1 parent 349d7af commit 0a952c0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/api_resources/zero_trust/dlp/test_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_update_overload_1(self, client: Cloudflare) -> None:
entry = client.zero_trust.dlp.entries.update(
Expand All @@ -102,6 +103,7 @@ def test_method_update_overload_1(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> None:
entry = client.zero_trust.dlp.entries.update(
Expand All @@ -116,6 +118,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_update_overload_1(self, client: Cloudflare) -> None:
response = client.zero_trust.dlp.entries.with_raw_response.update(
Expand All @@ -131,6 +134,7 @@ def test_raw_response_update_overload_1(self, client: Cloudflare) -> None:
entry = response.parse()
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None:
with client.zero_trust.dlp.entries.with_streaming_response.update(
Expand All @@ -148,6 +152,7 @@ def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -168,6 +173,7 @@ def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
type="custom",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_update_overload_2(self, client: Cloudflare) -> None:
entry = client.zero_trust.dlp.entries.update(
Expand All @@ -177,6 +183,7 @@ def test_method_update_overload_2(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_update_overload_2(self, client: Cloudflare) -> None:
response = client.zero_trust.dlp.entries.with_raw_response.update(
Expand All @@ -190,6 +197,7 @@ def test_raw_response_update_overload_2(self, client: Cloudflare) -> None:
entry = response.parse()
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None:
with client.zero_trust.dlp.entries.with_streaming_response.update(
Expand All @@ -205,6 +213,7 @@ def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -221,6 +230,7 @@ def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
type="predefined",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_update_overload_3(self, client: Cloudflare) -> None:
entry = client.zero_trust.dlp.entries.update(
Expand All @@ -230,6 +240,7 @@ def test_method_update_overload_3(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_update_overload_3(self, client: Cloudflare) -> None:
response = client.zero_trust.dlp.entries.with_raw_response.update(
Expand All @@ -243,6 +254,7 @@ def test_raw_response_update_overload_3(self, client: Cloudflare) -> None:
entry = response.parse()
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None:
with client.zero_trust.dlp.entries.with_streaming_response.update(
Expand All @@ -258,6 +270,7 @@ def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_3(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand Down Expand Up @@ -480,6 +493,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_update_overload_1(self, async_client: AsyncCloudflare) -> None:
entry = await async_client.zero_trust.dlp.entries.update(
Expand All @@ -491,6 +505,7 @@ async def test_method_update_overload_1(self, async_client: AsyncCloudflare) ->
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_update_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
entry = await async_client.zero_trust.dlp.entries.update(
Expand All @@ -505,6 +520,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.dlp.entries.with_raw_response.update(
Expand All @@ -520,6 +536,7 @@ async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflar
entry = await response.parse()
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_update_overload_1(self, async_client: AsyncCloudflare) -> None:
async with async_client.zero_trust.dlp.entries.with_streaming_response.update(
Expand All @@ -537,6 +554,7 @@ async def test_streaming_response_update_overload_1(self, async_client: AsyncClo

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_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 @@ -557,6 +575,7 @@ async def test_path_params_update_overload_1(self, async_client: AsyncCloudflare
type="custom",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_update_overload_2(self, async_client: AsyncCloudflare) -> None:
entry = await async_client.zero_trust.dlp.entries.update(
Expand All @@ -566,6 +585,7 @@ async def test_method_update_overload_2(self, async_client: AsyncCloudflare) ->
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.dlp.entries.with_raw_response.update(
Expand All @@ -579,6 +599,7 @@ async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflar
entry = await response.parse()
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_update_overload_2(self, async_client: AsyncCloudflare) -> None:
async with async_client.zero_trust.dlp.entries.with_streaming_response.update(
Expand All @@ -594,6 +615,7 @@ async def test_streaming_response_update_overload_2(self, async_client: AsyncClo

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -610,6 +632,7 @@ async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare
type="predefined",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_update_overload_3(self, async_client: AsyncCloudflare) -> None:
entry = await async_client.zero_trust.dlp.entries.update(
Expand All @@ -619,6 +642,7 @@ async def test_method_update_overload_3(self, async_client: AsyncCloudflare) ->
)
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.dlp.entries.with_raw_response.update(
Expand All @@ -632,6 +656,7 @@ async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflar
entry = await response.parse()
assert_matches_type(Optional[EntryUpdateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_update_overload_3(self, async_client: AsyncCloudflare) -> None:
async with async_client.zero_trust.dlp.entries.with_streaming_response.update(
Expand All @@ -647,6 +672,7 @@ async def test_streaming_response_update_overload_3(self, async_client: AsyncClo

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_3(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 0a952c0

Please sign in to comment.