Skip to content
Permalink
Browse files
fix: changed import path for logging client (#43)
  • Loading branch information
daniel-sanche committed Nov 20, 2020
1 parent 5eea8c4 commit a09449def35077beb85782c34a61c8f172c2f018
Showing with 5 additions and 5 deletions.
  1. +2 −2 google/cloud/error_reporting/_logging.py
  2. +3 −3 tests/unit/test__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,
@@ -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)

0 comments on commit a09449d

Please sign in to comment.