Skip to content

Commit 42e0458

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#352)
1 parent 5683c75 commit 42e0458

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/api_resources/queues/test_consumers.py

+10
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def test_method_create(self, client: Cloudflare) -> None:
3737
"max_retries": 3,
3838
"max_wait_time_ms": 5000,
3939
},
40+
"type": "worker",
4041
},
4142
)
4243
assert_matches_type(Optional[ConsumerCreateResponse], consumer, path=["response"])
@@ -56,6 +57,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
5657
"max_retries": 3,
5758
"max_wait_time_ms": 5000,
5859
},
60+
"type": "worker",
5961
},
6062
)
6163

@@ -79,6 +81,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
7981
"max_retries": 3,
8082
"max_wait_time_ms": 5000,
8183
},
84+
"type": "worker",
8285
},
8386
) as response:
8487
assert not response.is_closed
@@ -105,6 +108,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
105108
"max_retries": 3,
106109
"max_wait_time_ms": 5000,
107110
},
111+
"type": "worker",
108112
},
109113
)
110114

@@ -121,6 +125,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
121125
"max_retries": 3,
122126
"max_wait_time_ms": 5000,
123127
},
128+
"type": "worker",
124129
},
125130
)
126131

@@ -365,6 +370,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
365370
"max_retries": 3,
366371
"max_wait_time_ms": 5000,
367372
},
373+
"type": "worker",
368374
},
369375
)
370376
assert_matches_type(Optional[ConsumerCreateResponse], consumer, path=["response"])
@@ -384,6 +390,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
384390
"max_retries": 3,
385391
"max_wait_time_ms": 5000,
386392
},
393+
"type": "worker",
387394
},
388395
)
389396

@@ -407,6 +414,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
407414
"max_retries": 3,
408415
"max_wait_time_ms": 5000,
409416
},
417+
"type": "worker",
410418
},
411419
) as response:
412420
assert not response.is_closed
@@ -433,6 +441,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
433441
"max_retries": 3,
434442
"max_wait_time_ms": 5000,
435443
},
444+
"type": "worker",
436445
},
437446
)
438447

@@ -449,6 +458,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
449458
"max_retries": 3,
450459
"max_wait_time_ms": 5000,
451460
},
461+
"type": "worker",
452462
},
453463
)
454464

0 commit comments

Comments
 (0)