File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
google/cloud/error_reporting Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def make_report_error_api(client):
3636 :returns: An Error Reporting API instance.
3737 """
3838 channel = make_secure_channel (
39- client ._connection . credentials ,
39+ client ._credentials ,
4040 DEFAULT_USER_AGENT ,
4141 report_errors_service_client .ReportErrorsServiceClient .SERVICE_ADDRESS )
4242 gax_client = report_errors_service_client .ReportErrorsServiceClient (
Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ def test_make_report_error_api(self):
2828 from google .cloud .error_reporting import __version__
2929 from google .cloud .error_reporting ._gax import make_report_error_api
3030
31- client = mock .Mock ()
31+ client = mock .Mock (
32+ _credentials = mock .sentinel .credentials ,
33+ project = 'prahj-ekt' ,
34+ spec = ['project' , '_credentials' ],
35+ )
3236
3337 # Mock out the constructor for the GAPIC client.
3438 ServiceClient = report_errors_service_client .ReportErrorsServiceClient
You can’t perform that action at this time.
0 commit comments