Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Apr 24, 2024
1 parent 8398ecd commit e0af157
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/api_resources/queues/test_consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)
assert_matches_type(Optional[ConsumerCreateResponse], consumer, path=["response"])
Expand All @@ -56,6 +57,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)

Expand All @@ -79,6 +81,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
) as response:
assert not response.is_closed
Expand All @@ -105,6 +108,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)

Expand All @@ -121,6 +125,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)

Expand Down Expand Up @@ -365,6 +370,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)
assert_matches_type(Optional[ConsumerCreateResponse], consumer, path=["response"])
Expand All @@ -384,6 +390,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)

Expand All @@ -407,6 +414,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
) as response:
assert not response.is_closed
Expand All @@ -433,6 +441,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)

Expand All @@ -449,6 +458,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
"max_retries": 3,
"max_wait_time_ms": 5000,
},
"type": "worker",
},
)

Expand Down

0 comments on commit e0af157

Please sign in to comment.