code stringlengths 3 6.57k |
|---|
mock.patch.object(type(client.transport.create_rollout) |
operations_pb2.Operation(name="operations/op") |
cloud_deploy.Rollout(name="name_value") |
len(call.mock_calls) |
cloud_deploy.Rollout(name="name_value") |
test_create_rollout_flattened_error() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.CreateRolloutRequest() |
cloud_deploy.Rollout(name="name_value") |
test_create_rollout_flattened_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.create_rollout) |
operations_pb2.Operation(name="operations/op") |
operations_pb2.Operation(name="operations/spam") |
cloud_deploy.Rollout(name="name_value") |
len(call.mock_calls) |
cloud_deploy.Rollout(name="name_value") |
test_create_rollout_flattened_error_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.CreateRolloutRequest() |
cloud_deploy.Rollout(name="name_value") |
pytest.mark.parametrize("request_type", [cloud_deploy.GetConfigRequest, dict,]) |
test_get_config(request_type, transport: str = "grpc") |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.get_config) |
client.get_config(request) |
len(call.mock_calls) |
cloud_deploy.GetConfigRequest() |
isinstance(response, cloud_deploy.Config) |
test_get_config_empty_call() |
ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.get_config) |
client.get_config() |
call.assert_called() |
cloud_deploy.GetConfigRequest() |
ga_credentials.AnonymousCredentials() |
request_type() |
mock.patch.object(type(client.transport.get_config) |
client.get_config(request) |
len(call.mock_calls) |
cloud_deploy.GetConfigRequest() |
isinstance(response, cloud_deploy.Config) |
test_get_config_async_from_dict() |
test_get_config_async(request_type=dict) |
test_get_config_field_headers() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.GetConfigRequest() |
mock.patch.object(type(client.transport.get_config) |
cloud_deploy.Config() |
client.get_config(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "name=name/value",) |
test_get_config_field_headers_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
cloud_deploy.GetConfigRequest() |
mock.patch.object(type(client.transport.get_config) |
grpc_helpers_async.FakeUnaryUnaryCall(cloud_deploy.Config() |
client.get_config(request) |
len(call.mock_calls) |
assert ("x-goog-request-params", "name=name/value",) |
test_get_config_flattened() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.get_config) |
cloud_deploy.Config() |
client.get_config(name="name_value",) |
len(call.mock_calls) |
test_get_config_flattened_error() |
CloudDeployClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.GetConfigRequest() |
test_get_config_flattened_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
mock.patch.object(type(client.transport.get_config) |
cloud_deploy.Config() |
grpc_helpers_async.FakeUnaryUnaryCall(cloud_deploy.Config() |
client.get_config(name="name_value",) |
len(call.mock_calls) |
test_get_config_flattened_error_async() |
CloudDeployAsyncClient(credentials=ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
cloud_deploy.GetConfigRequest() |
test_credentials_transport_error() |
ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
ga_credentials.AnonymousCredentials() |
ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
ga_credentials.AnonymousCredentials() |
client_options.ClientOptions() |
pytest.raises(ValueError) |
CloudDeployClient(client_options=options, transport=transport,) |
mock.Mock() |
pytest.raises(ValueError) |
ga_credentials.AnonymousCredentials() |
ga_credentials.AnonymousCredentials() |
pytest.raises(ValueError) |
test_transport_instance() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.