code stringlengths 3 6.57k |
|---|
client.list_rollouts(request) |
len(call.mock_calls) |
cloud_deploy.ListRolloutsRequest() |
isinstance(response, pagers.ListRolloutsAsyncPager) |
test_list_rollouts_async_from_dict() |
test_list_rollouts_async(request_type=dict) |
test_list_rollouts_field_headers() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ListRolloutsRequest() |
mock.patch.object(type(client.transport.list_rollouts) |
cloud_deploy.ListRolloutsResponse() |
client.list_rollouts(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "parent=parent/value",) |
test_list_rollouts_field_headers_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ListRolloutsRequest() |
mock.patch.object(type(client.transport.list_rollouts) |
cloud_deploy.ListRolloutsResponse() |
client.list_rollouts(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "parent=parent/value",) |
test_list_rollouts_flattened() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.list_rollouts) |
cloud_deploy.ListRolloutsResponse() |
client.list_rollouts(parent="parent_value",) |
len(call.mock_calls) |
test_list_rollouts_flattened_error() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ListRolloutsRequest() |
test_list_rollouts_flattened_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.list_rollouts) |
cloud_deploy.ListRolloutsResponse() |
cloud_deploy.ListRolloutsResponse() |
client.list_rollouts(parent="parent_value",) |
len(call.mock_calls) |
test_list_rollouts_flattened_error_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ListRolloutsRequest() |
test_list_rollouts_pager(transport_name: str = "grpc") |
mock.patch.object(type(client.transport.list_rollouts) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.ListRolloutsResponse(rollouts=[], next_page_token="def",) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
tuple(metadata) |
gapic_v1.routing_header.to_grpc_metadata((("parent", "") |
client.list_rollouts(request={}) |
len(results) |
all(isinstance(i, cloud_deploy.Rollout) |
test_list_rollouts_pages(transport_name: str = "grpc") |
mock.patch.object(type(client.transport.list_rollouts) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.ListRolloutsResponse(rollouts=[], next_page_token="def",) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
list(client.list_rollouts(request={}) |
zip(pages, ["abc", "def", "ghi", ""]) |
test_list_rollouts_async_pager() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials,) |
type(client.transport.list_rollouts) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.ListRolloutsResponse(rollouts=[], next_page_token="def",) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
client.list_rollouts(request={},) |
responses.append(response) |
len(responses) |
all(isinstance(i, cloud_deploy.Rollout) |
test_list_rollouts_async_pages() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials,) |
type(client.transport.list_rollouts) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.ListRolloutsResponse(rollouts=[], next_page_token="def",) |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
cloud_deploy.Rollout() |
in (await client.list_rollouts(request={}) |
pages.append(page_) |
zip(pages, ["abc", "def", "ghi", ""]) |
pytest.mark.parametrize("request_type", [cloud_deploy.GetRolloutRequest, dict,]) |
test_get_rollout(request_type, transport: str = "grpc") |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.get_rollout) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.