code stringlengths 3 6.57k |
|---|
cloud_deploy.Release(name="name_value") |
test_create_release_flattened_error() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.CreateReleaseRequest() |
cloud_deploy.Release(name="name_value") |
test_create_release_flattened_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.create_release) |
operations_pb2.Operation(name="operations/op") |
operations_pb2.Operation(name="operations/spam") |
cloud_deploy.Release(name="name_value") |
len(call.mock_calls) |
cloud_deploy.Release(name="name_value") |
test_create_release_flattened_error_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.CreateReleaseRequest() |
cloud_deploy.Release(name="name_value") |
pytest.mark.parametrize("request_type", [cloud_deploy.ApproveRolloutRequest, dict,]) |
test_approve_rollout(request_type, transport: str = "grpc") |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.approve_rollout) |
cloud_deploy.ApproveRolloutResponse() |
client.approve_rollout(request) |
len(call.mock_calls) |
cloud_deploy.ApproveRolloutRequest() |
isinstance(response, cloud_deploy.ApproveRolloutResponse) |
test_approve_rollout_empty_call() |
ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.approve_rollout) |
client.approve_rollout() |
call.assert_called() |
cloud_deploy.ApproveRolloutRequest() |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.approve_rollout) |
cloud_deploy.ApproveRolloutResponse() |
client.approve_rollout(request) |
len(call.mock_calls) |
cloud_deploy.ApproveRolloutRequest() |
isinstance(response, cloud_deploy.ApproveRolloutResponse) |
test_approve_rollout_async_from_dict() |
test_approve_rollout_async(request_type=dict) |
test_approve_rollout_field_headers() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ApproveRolloutRequest() |
mock.patch.object(type(client.transport.approve_rollout) |
cloud_deploy.ApproveRolloutResponse() |
client.approve_rollout(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "name=name/value",) |
test_approve_rollout_field_headers_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.ApproveRolloutRequest() |
mock.patch.object(type(client.transport.approve_rollout) |
cloud_deploy.ApproveRolloutResponse() |
client.approve_rollout(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "name=name/value",) |
test_approve_rollout_flattened() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.approve_rollout) |
cloud_deploy.ApproveRolloutResponse() |
client.approve_rollout(name="name_value",) |
len(call.mock_calls) |
test_approve_rollout_flattened_error() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ApproveRolloutRequest() |
test_approve_rollout_flattened_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.approve_rollout) |
cloud_deploy.ApproveRolloutResponse() |
cloud_deploy.ApproveRolloutResponse() |
client.approve_rollout(name="name_value",) |
len(call.mock_calls) |
test_approve_rollout_flattened_error_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.ApproveRolloutRequest() |
pytest.mark.parametrize("request_type", [cloud_deploy.ListRolloutsRequest, dict,]) |
test_list_rollouts(request_type, transport: str = "grpc") |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.list_rollouts) |
client.list_rollouts(request) |
len(call.mock_calls) |
cloud_deploy.ListRolloutsRequest() |
isinstance(response, pagers.ListRolloutsPager) |
test_list_rollouts_empty_call() |
ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.list_rollouts) |
client.list_rollouts() |
call.assert_called() |
cloud_deploy.ListRolloutsRequest() |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.list_rollouts) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.