Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: changed import path for logging client (#43)
  • Loading branch information
daniel-sanche committed Nov 20, 2020
1 parent 5eea8c4 commit a09449d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions google/cloud/error_reporting/_logging.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test__logging.py
Expand Up @@ -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()

Expand All @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit a09449d

Please sign in to comment.