Skip to content

Commit a1a9301

Browse files
chore(api): update composite API spec
1 parent 292a780 commit a1a9301

9 files changed

Lines changed: 162 additions & 162 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1993
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0d52971b01c25a36f6fcfb4f73b19445b8fd83818763a6fd66f5616b49f6dd81.yml
3-
openapi_spec_hash: c389912f9fa531e76127e9d8a2500f22
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f2b3fee10da6901a7c2661c7aa56c50b60a47da670e6718e386c488daa62f896.yml
3+
openapi_spec_hash: f1de1119a8858c62bb0f73782b9dac2b
44
config_hash: 7f59e93c4d7dab420f060baaaadcd059

tests/api_resources/browser_rendering/test_content.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class TestContent:
2020
def test_method_create_overload_1(self, client: Cloudflare) -> None:
2121
content = client.browser_rendering.content.create(
2222
account_id="account_id",
23-
url="https://example.com",
23+
url="https://example.com/",
2424
)
2525
assert_matches_type(str, content, path=["response"])
2626

2727
@parametrize
2828
def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> None:
2929
content = client.browser_rendering.content.create(
3030
account_id="account_id",
31-
url="https://example.com",
31+
url="https://example.com/",
3232
cache_ttl=86400,
3333
action_timeout=120000,
3434
add_script_tag=[
@@ -104,7 +104,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N
104104
def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
105105
response = client.browser_rendering.content.with_raw_response.create(
106106
account_id="account_id",
107-
url="https://example.com",
107+
url="https://example.com/",
108108
)
109109

110110
assert response.is_closed is True
@@ -116,7 +116,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
116116
def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
117117
with client.browser_rendering.content.with_streaming_response.create(
118118
account_id="account_id",
119-
url="https://example.com",
119+
url="https://example.com/",
120120
) as response:
121121
assert not response.is_closed
122122
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -131,22 +131,22 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
131131
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
132132
client.browser_rendering.content.with_raw_response.create(
133133
account_id="",
134-
url="https://example.com",
134+
url="https://example.com/",
135135
)
136136

137137
@parametrize
138138
def test_method_create_overload_2(self, client: Cloudflare) -> None:
139139
content = client.browser_rendering.content.create(
140140
account_id="account_id",
141-
html="x",
141+
html="<h1>Hello World!</h1>",
142142
)
143143
assert_matches_type(str, content, path=["response"])
144144

145145
@parametrize
146146
def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> None:
147147
content = client.browser_rendering.content.create(
148148
account_id="account_id",
149-
html="x",
149+
html="<h1>Hello World!</h1>",
150150
cache_ttl=86400,
151151
action_timeout=120000,
152152
add_script_tag=[
@@ -222,7 +222,7 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N
222222
def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
223223
response = client.browser_rendering.content.with_raw_response.create(
224224
account_id="account_id",
225-
html="x",
225+
html="<h1>Hello World!</h1>",
226226
)
227227

228228
assert response.is_closed is True
@@ -234,7 +234,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
234234
def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
235235
with client.browser_rendering.content.with_streaming_response.create(
236236
account_id="account_id",
237-
html="x",
237+
html="<h1>Hello World!</h1>",
238238
) as response:
239239
assert not response.is_closed
240240
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -249,7 +249,7 @@ def test_path_params_create_overload_2(self, client: Cloudflare) -> None:
249249
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
250250
client.browser_rendering.content.with_raw_response.create(
251251
account_id="",
252-
html="x",
252+
html="<h1>Hello World!</h1>",
253253
)
254254

255255

@@ -262,15 +262,15 @@ class TestAsyncContent:
262262
async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> None:
263263
content = await async_client.browser_rendering.content.create(
264264
account_id="account_id",
265-
url="https://example.com",
265+
url="https://example.com/",
266266
)
267267
assert_matches_type(str, content, path=["response"])
268268

269269
@parametrize
270270
async def test_method_create_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
271271
content = await async_client.browser_rendering.content.create(
272272
account_id="account_id",
273-
url="https://example.com",
273+
url="https://example.com/",
274274
cache_ttl=86400,
275275
action_timeout=120000,
276276
add_script_tag=[
@@ -346,7 +346,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
346346
async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
347347
response = await async_client.browser_rendering.content.with_raw_response.create(
348348
account_id="account_id",
349-
url="https://example.com",
349+
url="https://example.com/",
350350
)
351351

352352
assert response.is_closed is True
@@ -358,7 +358,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar
358358
async def test_streaming_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
359359
async with async_client.browser_rendering.content.with_streaming_response.create(
360360
account_id="account_id",
361-
url="https://example.com",
361+
url="https://example.com/",
362362
) as response:
363363
assert not response.is_closed
364364
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -373,22 +373,22 @@ async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare
373373
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
374374
await async_client.browser_rendering.content.with_raw_response.create(
375375
account_id="",
376-
url="https://example.com",
376+
url="https://example.com/",
377377
)
378378

379379
@parametrize
380380
async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> None:
381381
content = await async_client.browser_rendering.content.create(
382382
account_id="account_id",
383-
html="x",
383+
html="<h1>Hello World!</h1>",
384384
)
385385
assert_matches_type(str, content, path=["response"])
386386

387387
@parametrize
388388
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None:
389389
content = await async_client.browser_rendering.content.create(
390390
account_id="account_id",
391-
html="x",
391+
html="<h1>Hello World!</h1>",
392392
cache_ttl=86400,
393393
action_timeout=120000,
394394
add_script_tag=[
@@ -464,7 +464,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
464464
async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
465465
response = await async_client.browser_rendering.content.with_raw_response.create(
466466
account_id="account_id",
467-
html="x",
467+
html="<h1>Hello World!</h1>",
468468
)
469469

470470
assert response.is_closed is True
@@ -476,7 +476,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar
476476
async def test_streaming_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
477477
async with async_client.browser_rendering.content.with_streaming_response.create(
478478
account_id="account_id",
479-
html="x",
479+
html="<h1>Hello World!</h1>",
480480
) as response:
481481
assert not response.is_closed
482482
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -491,5 +491,5 @@ async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare
491491
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
492492
await async_client.browser_rendering.content.with_raw_response.create(
493493
account_id="",
494-
html="x",
494+
html="<h1>Hello World!</h1>",
495495
)

tests/api_resources/browser_rendering/test_json.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class TestJson:
2121
def test_method_create_overload_1(self, client: Cloudflare) -> None:
2222
json = client.browser_rendering.json.create(
2323
account_id="account_id",
24-
html="x",
24+
html="<h1>Hello World!</h1>",
2525
)
2626
assert_matches_type(JsonCreateResponse, json, path=["response"])
2727

2828
@parametrize
2929
def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> None:
3030
json = client.browser_rendering.json.create(
3131
account_id="account_id",
32-
html="x",
32+
html="<h1>Hello World!</h1>",
3333
cache_ttl=86400,
3434
action_timeout=120000,
3535
add_script_tag=[
@@ -116,7 +116,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N
116116
def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
117117
response = client.browser_rendering.json.with_raw_response.create(
118118
account_id="account_id",
119-
html="x",
119+
html="<h1>Hello World!</h1>",
120120
)
121121

122122
assert response.is_closed is True
@@ -128,7 +128,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
128128
def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
129129
with client.browser_rendering.json.with_streaming_response.create(
130130
account_id="account_id",
131-
html="x",
131+
html="<h1>Hello World!</h1>",
132132
) as response:
133133
assert not response.is_closed
134134
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -143,22 +143,22 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
143143
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
144144
client.browser_rendering.json.with_raw_response.create(
145145
account_id="",
146-
html="x",
146+
html="<h1>Hello World!</h1>",
147147
)
148148

149149
@parametrize
150150
def test_method_create_overload_2(self, client: Cloudflare) -> None:
151151
json = client.browser_rendering.json.create(
152152
account_id="account_id",
153-
url="https://example.com",
153+
url="https://example.com/",
154154
)
155155
assert_matches_type(JsonCreateResponse, json, path=["response"])
156156

157157
@parametrize
158158
def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> None:
159159
json = client.browser_rendering.json.create(
160160
account_id="account_id",
161-
url="https://example.com",
161+
url="https://example.com/",
162162
cache_ttl=86400,
163163
action_timeout=120000,
164164
add_script_tag=[
@@ -245,7 +245,7 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N
245245
def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
246246
response = client.browser_rendering.json.with_raw_response.create(
247247
account_id="account_id",
248-
url="https://example.com",
248+
url="https://example.com/",
249249
)
250250

251251
assert response.is_closed is True
@@ -257,7 +257,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
257257
def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
258258
with client.browser_rendering.json.with_streaming_response.create(
259259
account_id="account_id",
260-
url="https://example.com",
260+
url="https://example.com/",
261261
) as response:
262262
assert not response.is_closed
263263
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -272,7 +272,7 @@ def test_path_params_create_overload_2(self, client: Cloudflare) -> None:
272272
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
273273
client.browser_rendering.json.with_raw_response.create(
274274
account_id="",
275-
url="https://example.com",
275+
url="https://example.com/",
276276
)
277277

278278

@@ -285,15 +285,15 @@ class TestAsyncJson:
285285
async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> None:
286286
json = await async_client.browser_rendering.json.create(
287287
account_id="account_id",
288-
html="x",
288+
html="<h1>Hello World!</h1>",
289289
)
290290
assert_matches_type(JsonCreateResponse, json, path=["response"])
291291

292292
@parametrize
293293
async def test_method_create_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
294294
json = await async_client.browser_rendering.json.create(
295295
account_id="account_id",
296-
html="x",
296+
html="<h1>Hello World!</h1>",
297297
cache_ttl=86400,
298298
action_timeout=120000,
299299
add_script_tag=[
@@ -380,7 +380,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
380380
async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
381381
response = await async_client.browser_rendering.json.with_raw_response.create(
382382
account_id="account_id",
383-
html="x",
383+
html="<h1>Hello World!</h1>",
384384
)
385385

386386
assert response.is_closed is True
@@ -392,7 +392,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar
392392
async def test_streaming_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
393393
async with async_client.browser_rendering.json.with_streaming_response.create(
394394
account_id="account_id",
395-
html="x",
395+
html="<h1>Hello World!</h1>",
396396
) as response:
397397
assert not response.is_closed
398398
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -407,22 +407,22 @@ async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare
407407
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
408408
await async_client.browser_rendering.json.with_raw_response.create(
409409
account_id="",
410-
html="x",
410+
html="<h1>Hello World!</h1>",
411411
)
412412

413413
@parametrize
414414
async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> None:
415415
json = await async_client.browser_rendering.json.create(
416416
account_id="account_id",
417-
url="https://example.com",
417+
url="https://example.com/",
418418
)
419419
assert_matches_type(JsonCreateResponse, json, path=["response"])
420420

421421
@parametrize
422422
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None:
423423
json = await async_client.browser_rendering.json.create(
424424
account_id="account_id",
425-
url="https://example.com",
425+
url="https://example.com/",
426426
cache_ttl=86400,
427427
action_timeout=120000,
428428
add_script_tag=[
@@ -509,7 +509,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
509509
async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
510510
response = await async_client.browser_rendering.json.with_raw_response.create(
511511
account_id="account_id",
512-
url="https://example.com",
512+
url="https://example.com/",
513513
)
514514

515515
assert response.is_closed is True
@@ -521,7 +521,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar
521521
async def test_streaming_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
522522
async with async_client.browser_rendering.json.with_streaming_response.create(
523523
account_id="account_id",
524-
url="https://example.com",
524+
url="https://example.com/",
525525
) as response:
526526
assert not response.is_closed
527527
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -536,5 +536,5 @@ async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare
536536
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
537537
await async_client.browser_rendering.json.with_raw_response.create(
538538
account_id="",
539-
url="https://example.com",
539+
url="https://example.com/",
540540
)

0 commit comments

Comments
 (0)