Skip to content
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

feat(api): update via SDK Studio #999

Merged
merged 1 commit into from
Jun 17, 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
8 changes: 8 additions & 0 deletions tests/api_resources/kv/namespaces/test_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
namespace_id="0f2ac74b498b48028cb68387c421e279",
)

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
def test_method_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
Expand All @@ -177,6 +178,7 @@ def test_method_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
assert cast(Any, value.is_closed) is True
assert isinstance(value, BinaryAPIResponse)

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
def test_raw_response_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
Expand All @@ -195,6 +197,7 @@ def test_raw_response_get(self, client: Cloudflare, respx_mock: MockRouter) -> N
assert value.json() == {"foo": "bar"}
assert isinstance(value, BinaryAPIResponse)

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
def test_streaming_response_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
Expand All @@ -215,6 +218,7 @@ def test_streaming_response_get(self, client: Cloudflare, respx_mock: MockRouter

assert cast(Any, value.is_closed) is True

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
def test_path_params_get(self, client: Cloudflare) -> None:
Expand Down Expand Up @@ -379,6 +383,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
namespace_id="0f2ac74b498b48028cb68387c421e279",
)

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_method_get(self, async_client: AsyncCloudflare, respx_mock: MockRouter) -> None:
Expand All @@ -395,6 +400,7 @@ async def test_method_get(self, async_client: AsyncCloudflare, respx_mock: MockR
assert cast(Any, value.is_closed) is True
assert isinstance(value, AsyncBinaryAPIResponse)

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_raw_response_get(self, async_client: AsyncCloudflare, respx_mock: MockRouter) -> None:
Expand All @@ -413,6 +419,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare, respx_mock:
assert await value.json() == {"foo": "bar"}
assert isinstance(value, AsyncBinaryAPIResponse)

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_streaming_response_get(self, async_client: AsyncCloudflare, respx_mock: MockRouter) -> None:
Expand All @@ -433,6 +440,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare, respx

assert cast(Any, value.is_closed) is True

@pytest.mark.skip(reason="HTTP 406 from prism")
@parametrize
@pytest.mark.respx(base_url=base_url)
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
Expand Down