Skip to content

Commit e1210d1

Browse files
feat: OpenAPI spec update via Stainless API (#95)
1 parent d73981e commit e1210d1

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

tests/api_resources/workers/test_scripts.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
4747
any_part_name=[b"raw file contents", b"raw file contents", b"raw file contents"],
4848
message="string",
4949
metadata={
50-
"bindings": [{}, {}, {}],
50+
"bindings": [
51+
{
52+
"name": "MY_ENV_VAR",
53+
"text": "my_data",
54+
"type": "plain_text",
55+
}
56+
],
5157
"body_part": "worker.js",
5258
"compatibility_date": "2023-07-25",
5359
"compatibility_flags": ["string", "string", "string"],
@@ -356,7 +362,13 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
356362
any_part_name=[b"raw file contents", b"raw file contents", b"raw file contents"],
357363
message="string",
358364
metadata={
359-
"bindings": [{}, {}, {}],
365+
"bindings": [
366+
{
367+
"name": "MY_ENV_VAR",
368+
"text": "my_data",
369+
"type": "plain_text",
370+
}
371+
],
360372
"body_part": "worker.js",
361373
"compatibility_date": "2023-07-25",
362374
"compatibility_flags": ["string", "string", "string"],

tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
4040
any_part_name=[b"raw file contents", b"raw file contents", b"raw file contents"],
4141
message="string",
4242
metadata={
43-
"bindings": [{}, {}, {}],
43+
"bindings": [
44+
{
45+
"name": "MY_ENV_VAR",
46+
"text": "my_data",
47+
"type": "plain_text",
48+
}
49+
],
4450
"body_part": "worker.js",
4551
"compatibility_date": "2023-07-25",
4652
"compatibility_flags": ["string", "string", "string"],
@@ -326,7 +332,13 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
326332
any_part_name=[b"raw file contents", b"raw file contents", b"raw file contents"],
327333
message="string",
328334
metadata={
329-
"bindings": [{}, {}, {}],
335+
"bindings": [
336+
{
337+
"name": "MY_ENV_VAR",
338+
"text": "my_data",
339+
"type": "plain_text",
340+
}
341+
],
330342
"body_part": "worker.js",
331343
"compatibility_date": "2023-07-25",
332344
"compatibility_flags": ["string", "string", "string"],

0 commit comments

Comments
 (0)