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):
36
36
:returns: An Error Reporting API instance.
37
37
"""
38
38
channel = make_secure_channel (
39
- client ._connection . credentials ,
39
+ client ._credentials ,
40
40
DEFAULT_USER_AGENT ,
41
41
report_errors_service_client .ReportErrorsServiceClient .SERVICE_ADDRESS )
42
42
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):
28
28
from google .cloud .error_reporting import __version__
29
29
from google .cloud .error_reporting ._gax import make_report_error_api
30
30
31
- client = mock .Mock ()
31
+ client = mock .Mock (
32
+ _credentials = mock .sentinel .credentials ,
33
+ project = 'prahj-ekt' ,
34
+ spec = ['project' , '_credentials' ],
35
+ )
32
36
33
37
# Mock out the constructor for the GAPIC client.
34
38
ServiceClient = report_errors_service_client .ReportErrorsServiceClient
You can’t perform that action at this time.
0 commit comments