Skip to content

Commit 712c994

Browse files
chore(internal): codegen related update (#2282)
1 parent 54e1a34 commit 712c994

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/api_resources/cache/test_cache_reserve.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ class TestCacheReserve:
2626
def test_method_clear(self, client: Cloudflare) -> None:
2727
cache_reserve = client.cache.cache_reserve.clear(
2828
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
29-
body="{}",
29+
body={},
3030
)
3131
assert_matches_type(CacheReserveClearResponse, cache_reserve, path=["response"])
3232

3333
@parametrize
3434
def test_raw_response_clear(self, client: Cloudflare) -> None:
3535
response = client.cache.cache_reserve.with_raw_response.clear(
3636
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
37-
body="{}",
37+
body={},
3838
)
3939

4040
assert response.is_closed is True
@@ -46,7 +46,7 @@ def test_raw_response_clear(self, client: Cloudflare) -> None:
4646
def test_streaming_response_clear(self, client: Cloudflare) -> None:
4747
with client.cache.cache_reserve.with_streaming_response.clear(
4848
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
49-
body="{}",
49+
body={},
5050
) as response:
5151
assert not response.is_closed
5252
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -61,7 +61,7 @@ def test_path_params_clear(self, client: Cloudflare) -> None:
6161
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
6262
client.cache.cache_reserve.with_raw_response.clear(
6363
zone_id="",
64-
body="{}",
64+
body={},
6565
)
6666

6767
@parametrize
@@ -190,15 +190,15 @@ class TestAsyncCacheReserve:
190190
async def test_method_clear(self, async_client: AsyncCloudflare) -> None:
191191
cache_reserve = await async_client.cache.cache_reserve.clear(
192192
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
193-
body="{}",
193+
body={},
194194
)
195195
assert_matches_type(CacheReserveClearResponse, cache_reserve, path=["response"])
196196

197197
@parametrize
198198
async def test_raw_response_clear(self, async_client: AsyncCloudflare) -> None:
199199
response = await async_client.cache.cache_reserve.with_raw_response.clear(
200200
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
201-
body="{}",
201+
body={},
202202
)
203203

204204
assert response.is_closed is True
@@ -210,7 +210,7 @@ async def test_raw_response_clear(self, async_client: AsyncCloudflare) -> None:
210210
async def test_streaming_response_clear(self, async_client: AsyncCloudflare) -> None:
211211
async with async_client.cache.cache_reserve.with_streaming_response.clear(
212212
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
213-
body="{}",
213+
body={},
214214
) as response:
215215
assert not response.is_closed
216216
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:
225225
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
226226
await async_client.cache.cache_reserve.with_raw_response.clear(
227227
zone_id="",
228-
body="{}",
228+
body={},
229229
)
230230

231231
@parametrize

0 commit comments

Comments
 (0)