From d9f9cc5af5e204115e0268ac48f7a3ae1076c123 Mon Sep 17 00:00:00 2001 From: Francisco Maxwell Date: Thu, 24 Sep 2026 00:24:14 -0300 Subject: [PATCH] Fix stale Access application path parameter tests --- .../zero_trust/access/test_applications.py | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/tests/api_resources/zero_trust/access/test_applications.py b/tests/api_resources/zero_trust/access/test_applications.py index 43ae1e761bb..b753cb5e62e 100644 --- a/tests/api_resources/zero_trust/access/test_applications.py +++ b/tests/api_resources/zero_trust/access/test_applications.py @@ -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 @@ -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 @@ -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