code stringlengths 3 6.57k |
|---|
pytest.mark.parametrize("request_type", [cloud_deploy.ListTargetsRequest, dict,]) |
test_list_targets(request_type, transport: str = "grpc") |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.list_targets) |
client.list_targets(request) |
len(call.mock_calls) |
cloud_deploy.ListTargetsRequest() |
isinstance(response, pagers.ListTargetsPager) |
test_list_targets_empty_call() |
ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.list_targets) |
client.list_targets() |
call.assert_called() |
cloud_deploy.ListTargetsRequest() |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.list_targets) |
client.list_targets(request) |
len(call.mock_calls) |
cloud_deploy.ListTargetsRequest() |
isinstance(response, pagers.ListTargetsAsyncPager) |
test_list_targets_async_from_dict() |
test_list_targets_async(request_type=dict) |
test_list_targets_field_headers() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ListTargetsRequest() |
mock.patch.object(type(client.transport.list_targets) |
cloud_deploy.ListTargetsResponse() |
client.list_targets(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "parent=parent/value",) |
test_list_targets_field_headers_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ListTargetsRequest() |
mock.patch.object(type(client.transport.list_targets) |
cloud_deploy.ListTargetsResponse() |
client.list_targets(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "parent=parent/value",) |
test_list_targets_flattened() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.list_targets) |
cloud_deploy.ListTargetsResponse() |
client.list_targets(parent="parent_value",) |
len(call.mock_calls) |
test_list_targets_flattened_error() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ListTargetsRequest() |
test_list_targets_flattened_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.list_targets) |
cloud_deploy.ListTargetsResponse() |
cloud_deploy.ListTargetsResponse() |
client.list_targets(parent="parent_value",) |
len(call.mock_calls) |
test_list_targets_flattened_error_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ListTargetsRequest() |
test_list_targets_pager(transport_name: str = "grpc") |
mock.patch.object(type(client.transport.list_targets) |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.ListTargetsResponse(targets=[], next_page_token="def",) |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.Target() |
tuple(metadata) |
gapic_v1.routing_header.to_grpc_metadata((("parent", "") |
client.list_targets(request={}) |
len(results) |
all(isinstance(i, cloud_deploy.Target) |
test_list_targets_pages(transport_name: str = "grpc") |
mock.patch.object(type(client.transport.list_targets) |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.ListTargetsResponse(targets=[], next_page_token="def",) |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.Target() |
list(client.list_targets(request={}) |
zip(pages, ["abc", "def", "ghi", ""]) |
test_list_targets_async_pager() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials,) |
type(client.transport.list_targets) |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.ListTargetsResponse(targets=[], next_page_token="def",) |
cloud_deploy.Target() |
cloud_deploy.Target() |
cloud_deploy.Target() |
client.list_targets(request={},) |
responses.append(response) |
len(responses) |
all(isinstance(i, cloud_deploy.Target) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.