Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #352

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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