diff --git a/google/cloud/error_reporting/_logging.py b/google/cloud/error_reporting/_logging.py index 74369a7c..5e83d148 100644 --- a/google/cloud/error_reporting/_logging.py +++ b/google/cloud/error_reporting/_logging.py @@ -19,7 +19,7 @@ client provides a mechanism to report errors using that technique. """ -import google.cloud.logging.client +import google.cloud.logging class _ErrorReportingLoggingAPI(object): @@ -69,7 +69,7 @@ def __init__( client_info=None, client_options=None, ): - self.logging_client = google.cloud.logging.client.Client( + self.logging_client = google.cloud.logging.Client( project, credentials, _http=_http, diff --git a/tests/unit/test__logging.py b/tests/unit/test__logging.py index 726eaabf..772b5229 100644 --- a/tests/unit/test__logging.py +++ b/tests/unit/test__logging.py @@ -32,7 +32,7 @@ def _make_one(self, project, credentials, **kw): return _ErrorReportingLoggingAPI(project, credentials, **kw) - @mock.patch("google.cloud.logging.client.Client") + @mock.patch("google.cloud.logging.Client") def test_ctor_defaults(self, mocked_cls): credentials = _make_credentials() @@ -43,7 +43,7 @@ def test_ctor_defaults(self, mocked_cls): self.PROJECT, credentials, _http=None, client_info=None, client_options=None ) - @mock.patch("google.cloud.logging.client.Client") + @mock.patch("google.cloud.logging.Client") def test_ctor_explicit(self, mocked_cls): credentials = _make_credentials() http = mock.Mock() @@ -67,7 +67,7 @@ def test_ctor_explicit(self, mocked_cls): client_options=client_options, ) - @mock.patch("google.cloud.logging.client.Client") + @mock.patch("google.cloud.logging.Client") def test_report_error_event(self, mocked_cls): credentials = _make_credentials() logging_api = self._make_one(self.PROJECT, credentials)