Skip to content

feat(dlp): disable problematic test #2261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
class TestEntries:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
entry = client.zero_trust.dlp.datasets.versions.entries.create(
Expand All @@ -28,6 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[EntryCreateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.zero_trust.dlp.datasets.versions.entries.with_raw_response.create(
Expand All @@ -43,6 +45,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
entry = response.parse()
assert_matches_type(Optional[EntryCreateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.zero_trust.dlp.datasets.versions.entries.with_streaming_response.create(
Expand All @@ -60,6 +63,7 @@ def test_streaming_response_create(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_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand Down Expand Up @@ -93,6 +97,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
class TestAsyncEntries:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
entry = await async_client.zero_trust.dlp.datasets.versions.entries.create(
Expand All @@ -104,6 +109,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(Optional[EntryCreateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.dlp.datasets.versions.entries.with_raw_response.create(
Expand All @@ -119,6 +125,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
entry = await response.parse()
assert_matches_type(Optional[EntryCreateResponse], entry, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.zero_trust.dlp.datasets.versions.entries.with_streaming_response.create(
Expand All @@ -136,6 +143,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand Down