Skip to content
Merged
Show file tree
Hide file tree
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
34 changes: 0 additions & 34 deletions tests/api_resources/test_zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
class TestZones:
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:
zone = client.zones.create(
Expand All @@ -30,7 +29,6 @@ def test_method_create(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
zone = client.zones.create(
Expand All @@ -40,7 +38,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.zones.with_raw_response.create(
Expand All @@ -53,7 +50,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
zone = response.parse()
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.zones.with_streaming_response.create(
Expand All @@ -68,13 +64,11 @@ 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_method_list(self, client: Cloudflare) -> None:
zone = client.zones.list()
assert_matches_type(SyncV4PagePaginationArray[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
zone = client.zones.list(
Expand All @@ -92,7 +86,6 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
)
assert_matches_type(SyncV4PagePaginationArray[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.zones.with_raw_response.list()
Expand All @@ -102,7 +95,6 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
zone = response.parse()
assert_matches_type(SyncV4PagePaginationArray[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.zones.with_streaming_response.list() as response:
Expand Down Expand Up @@ -156,15 +148,13 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
zone_id="",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
zone = client.zones.edit(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
zone = client.zones.edit(
Expand All @@ -174,7 +164,6 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.zones.with_raw_response.edit(
Expand All @@ -186,7 +175,6 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
zone = response.parse()
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.zones.with_streaming_response.edit(
Expand All @@ -200,23 +188,20 @@ def test_streaming_response_edit(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_edit(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.zones.with_raw_response.edit(
zone_id="",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
zone = client.zones.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.zones.with_raw_response.get(
Expand All @@ -228,7 +213,6 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
zone = response.parse()
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.zones.with_streaming_response.get(
Expand All @@ -242,7 +226,6 @@ def test_streaming_response_get(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_get(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
Expand All @@ -254,7 +237,6 @@ def test_path_params_get(self, client: Cloudflare) -> None:
class TestAsyncZones:
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:
zone = await async_client.zones.create(
Expand All @@ -263,7 +245,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.zones.create(
Expand All @@ -273,7 +254,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
)
assert_matches_type(Optional[Zone], zone, 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.zones.with_raw_response.create(
Expand All @@ -286,7 +266,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
zone = await response.parse()
assert_matches_type(Optional[Zone], zone, 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.zones.with_streaming_response.create(
Expand All @@ -301,13 +280,11 @@ 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_method_list(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.zones.list()
assert_matches_type(AsyncV4PagePaginationArray[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.zones.list(
Expand All @@ -325,7 +302,6 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
)
assert_matches_type(AsyncV4PagePaginationArray[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zones.with_raw_response.list()
Expand All @@ -335,7 +311,6 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
zone = await response.parse()
assert_matches_type(AsyncV4PagePaginationArray[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.zones.with_streaming_response.list() as response:
Expand Down Expand Up @@ -389,15 +364,13 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
zone_id="",
)

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.zones.edit(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.zones.edit(
Expand All @@ -407,7 +380,6 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zones.with_raw_response.edit(
Expand All @@ -419,7 +391,6 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
zone = await response.parse()
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
async with async_client.zones.with_streaming_response.edit(
Expand All @@ -433,23 +404,20 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N

assert cast(Any, response.is_closed) is True

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

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.zones.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zones.with_raw_response.get(
Expand All @@ -461,7 +429,6 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
zone = await response.parse()
assert_matches_type(Optional[Zone], zone, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.zones.with_streaming_response.get(
Expand All @@ -475,7 +442,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
class TestUsers:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
user = client.zero_trust.access.applications.policy_tests.users.list(
Expand All @@ -26,7 +25,6 @@ def test_method_list(self, client: Cloudflare) -> None:
)
assert_matches_type(UserListResponse, user, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.zero_trust.access.applications.policy_tests.users.with_raw_response.list(
Expand All @@ -39,7 +37,6 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
user = response.parse()
assert_matches_type(UserListResponse, user, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.zero_trust.access.applications.policy_tests.users.with_streaming_response.list(
Expand All @@ -54,7 +51,6 @@ def test_streaming_response_list(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_list(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand All @@ -73,7 +69,6 @@ def test_path_params_list(self, client: Cloudflare) -> None:
class TestAsyncUsers:
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_list(self, async_client: AsyncCloudflare) -> None:
user = await async_client.zero_trust.access.applications.policy_tests.users.list(
Expand All @@ -82,7 +77,6 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(UserListResponse, user, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.access.applications.policy_tests.users.with_raw_response.list(
Expand All @@ -95,7 +89,6 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
user = await response.parse()
assert_matches_type(UserListResponse, user, path=["response"])

@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.zero_trust.access.applications.policy_tests.users.with_streaming_response.list(
Expand All @@ -110,7 +103,6 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N

assert cast(Any, response.is_closed) is True

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