File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
packages/google-cloud-error-reporting/unit_tests Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class Test_make_report_error_api(unittest.TestCase):
2121
2222 def test_make_report_error_api (self ):
2323 from google .cloud .error_reporting ._gax import make_report_error_api
24+
2425 client = mock .Mock ()
2526 client .project = mock .Mock ()
2627 report_error_client = make_report_error_api (client )
@@ -33,6 +34,7 @@ class Test_ErrorReportingGaxApi(unittest.TestCase):
3334
3435 def _call_fut (self , gax_api , project ):
3536 from google .cloud .error_reporting ._gax import _ErrorReportingGaxApi
37+
3638 return _ErrorReportingGaxApi (gax_api , project )
3739
3840 def test_constructor (self ):
Original file line number Diff line number Diff line change 1919
2020def _make_credentials ():
2121 import google .auth .credentials
22+
2223 return mock .Mock (spec = google .auth .credentials .Credentials )
2324
2425
@@ -31,6 +32,7 @@ class Test_ErrorReportingLoggingAPI(unittest.TestCase):
3132 def _call_fut (self , project , credentials ):
3233 from google .cloud .error_reporting ._logging import (
3334 _ErrorReportingLoggingAPI )
35+
3436 return _ErrorReportingLoggingAPI (project , credentials )
3537
3638 def test_constructor (self ):
Original file line number Diff line number Diff line change @@ -108,8 +108,7 @@ def test_report_exception_wo_gax(self):
108108
109109 @mock .patch ('google.cloud.error_reporting.client.make_report_error_api' )
110110 def test_report_exception_with_service_version_in_constructor (
111- self ,
112- make_client ):
111+ self , make_client ):
113112 CREDENTIALS = _make_credentials ()
114113 SERVICE = "notdefault"
115114 VERSION = "notdefaultversion"
You can’t perform that action at this time.
0 commit comments