@@ -26,15 +26,15 @@ class TestCacheReserve:
26
26
def test_method_clear (self , client : Cloudflare ) -> None :
27
27
cache_reserve = client .cache .cache_reserve .clear (
28
28
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
29
- body = "{}" ,
29
+ body = {} ,
30
30
)
31
31
assert_matches_type (CacheReserveClearResponse , cache_reserve , path = ["response" ])
32
32
33
33
@parametrize
34
34
def test_raw_response_clear (self , client : Cloudflare ) -> None :
35
35
response = client .cache .cache_reserve .with_raw_response .clear (
36
36
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
37
- body = "{}" ,
37
+ body = {} ,
38
38
)
39
39
40
40
assert response .is_closed is True
@@ -46,7 +46,7 @@ def test_raw_response_clear(self, client: Cloudflare) -> None:
46
46
def test_streaming_response_clear (self , client : Cloudflare ) -> None :
47
47
with client .cache .cache_reserve .with_streaming_response .clear (
48
48
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
49
- body = "{}" ,
49
+ body = {} ,
50
50
) as response :
51
51
assert not response .is_closed
52
52
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -61,7 +61,7 @@ def test_path_params_clear(self, client: Cloudflare) -> None:
61
61
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
62
62
client .cache .cache_reserve .with_raw_response .clear (
63
63
zone_id = "" ,
64
- body = "{}" ,
64
+ body = {} ,
65
65
)
66
66
67
67
@parametrize
@@ -190,15 +190,15 @@ class TestAsyncCacheReserve:
190
190
async def test_method_clear (self , async_client : AsyncCloudflare ) -> None :
191
191
cache_reserve = await async_client .cache .cache_reserve .clear (
192
192
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
193
- body = "{}" ,
193
+ body = {} ,
194
194
)
195
195
assert_matches_type (CacheReserveClearResponse , cache_reserve , path = ["response" ])
196
196
197
197
@parametrize
198
198
async def test_raw_response_clear (self , async_client : AsyncCloudflare ) -> None :
199
199
response = await async_client .cache .cache_reserve .with_raw_response .clear (
200
200
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
201
- body = "{}" ,
201
+ body = {} ,
202
202
)
203
203
204
204
assert response .is_closed is True
@@ -210,7 +210,7 @@ async def test_raw_response_clear(self, async_client: AsyncCloudflare) -> None:
210
210
async def test_streaming_response_clear (self , async_client : AsyncCloudflare ) -> None :
211
211
async with async_client .cache .cache_reserve .with_streaming_response .clear (
212
212
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
213
- body = "{}" ,
213
+ body = {} ,
214
214
) as response :
215
215
assert not response .is_closed
216
216
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:
225
225
with pytest .raises (ValueError , match = r"Expected a non-empty value for `zone_id` but received ''" ):
226
226
await async_client .cache .cache_reserve .with_raw_response .clear (
227
227
zone_id = "" ,
228
- body = "{}" ,
228
+ body = {} ,
229
229
)
230
230
231
231
@parametrize
0 commit comments