Skip to content
Open
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
25 changes: 11 additions & 14 deletions tests/api_resources/zero_trust/access/test_applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,11 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
account_id="",
)

with pytest.raises(ValueError, match=r"You must provide either account_id or zone_id"):
client.zero_trust.access.applications.with_raw_response.create(
domain="test.example.com/admin",
type="self_hosted",
account_id="account_id",
)
client.zero_trust.access.applications.with_raw_response.create(
domain="test.example.com/admin",
type="self_hosted",
account_id="account_id",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
Expand Down Expand Up @@ -3745,10 +3744,9 @@ def test_path_params_list(self, client: Cloudflare) -> None:
account_id="",
)

with pytest.raises(ValueError, match=r"You must provide either account_id or zone_id"):
client.zero_trust.access.applications.with_raw_response.list(
account_id="account_id",
)
client.zero_trust.access.applications.with_raw_response.list(
account_id="account_id",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
Expand Down Expand Up @@ -7678,10 +7676,9 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
account_id="",
)

with pytest.raises(ValueError, match=r"You must provide either account_id or zone_id"):
await async_client.zero_trust.access.applications.with_raw_response.list(
account_id="account_id",
)
await async_client.zero_trust.access.applications.with_raw_response.list(
account_id="account_id",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
Expand Down