From 233170b387b76d371a0b497a176576e9dbb1ecef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:37:17 +0000 Subject: [PATCH] chore(internal): codegen related update --- tests/api_resources/cache/test_cache_reserve.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/api_resources/cache/test_cache_reserve.py b/tests/api_resources/cache/test_cache_reserve.py index fb8eab75309..1d1478215cf 100644 --- a/tests/api_resources/cache/test_cache_reserve.py +++ b/tests/api_resources/cache/test_cache_reserve.py @@ -26,7 +26,7 @@ class TestCacheReserve: def test_method_clear(self, client: Cloudflare) -> None: cache_reserve = client.cache.cache_reserve.clear( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - body="{}", + body={}, ) assert_matches_type(CacheReserveClearResponse, cache_reserve, path=["response"]) @@ -34,7 +34,7 @@ def test_method_clear(self, client: Cloudflare) -> None: def test_raw_response_clear(self, client: Cloudflare) -> None: response = client.cache.cache_reserve.with_raw_response.clear( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - body="{}", + body={}, ) assert response.is_closed is True @@ -46,7 +46,7 @@ def test_raw_response_clear(self, client: Cloudflare) -> None: def test_streaming_response_clear(self, client: Cloudflare) -> None: with client.cache.cache_reserve.with_streaming_response.clear( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - body="{}", + body={}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -61,7 +61,7 @@ def test_path_params_clear(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.cache.cache_reserve.with_raw_response.clear( zone_id="", - body="{}", + body={}, ) @parametrize @@ -190,7 +190,7 @@ class TestAsyncCacheReserve: async def test_method_clear(self, async_client: AsyncCloudflare) -> None: cache_reserve = await async_client.cache.cache_reserve.clear( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - body="{}", + body={}, ) assert_matches_type(CacheReserveClearResponse, cache_reserve, path=["response"]) @@ -198,7 +198,7 @@ async def test_method_clear(self, async_client: AsyncCloudflare) -> None: async def test_raw_response_clear(self, async_client: AsyncCloudflare) -> None: response = await async_client.cache.cache_reserve.with_raw_response.clear( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - body="{}", + body={}, ) assert response.is_closed is True @@ -210,7 +210,7 @@ async def test_raw_response_clear(self, async_client: AsyncCloudflare) -> None: async def test_streaming_response_clear(self, async_client: AsyncCloudflare) -> None: async with async_client.cache.cache_reserve.with_streaming_response.clear( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - body="{}", + body={}, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -225,7 +225,7 @@ async def test_path_params_clear(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.cache.cache_reserve.with_raw_response.clear( zone_id="", - body="{}", + body={}, ) @parametrize