File tree Expand file tree Collapse file tree
google/cloud/error_reporting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def make_report_error_api(client):
3434 :returns: An Error Reporting API instance.
3535 """
3636 channel = make_secure_channel (
37- client ._connection . credentials ,
37+ client ._credentials ,
3838 DEFAULT_USER_AGENT ,
3939 report_errors_service_client .ReportErrorsServiceClient .SERVICE_ADDRESS )
4040 gax_client = report_errors_service_client .ReportErrorsServiceClient (
Original file line number Diff line number Diff line change @@ -22,8 +22,11 @@ class Test_make_report_error_api(unittest.TestCase):
2222 def test_make_report_error_api (self ):
2323 from google .cloud .error_reporting ._gax import make_report_error_api
2424
25- client = mock .Mock ()
26- client .project = mock .Mock ()
25+ client = mock .Mock (
26+ _credentials = mock .sentinel .credentials ,
27+ project = 'prahj-ekt' ,
28+ spec = ['project' , '_credentials' ],
29+ )
2730 report_error_client = make_report_error_api (client )
2831 self .assertEqual (report_error_client ._project , client .project )
2932
You can’t perform that action at this time.
0 commit comments