Skip to content

Commit a09449d

Browse files
fix: changed import path for logging client (#43)
1 parent 5eea8c4 commit a09449d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

google/cloud/error_reporting/_logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
client provides a mechanism to report errors using that technique.
2020
"""
2121

22-
import google.cloud.logging.client
22+
import google.cloud.logging
2323

2424

2525
class _ErrorReportingLoggingAPI(object):
@@ -69,7 +69,7 @@ def __init__(
6969
client_info=None,
7070
client_options=None,
7171
):
72-
self.logging_client = google.cloud.logging.client.Client(
72+
self.logging_client = google.cloud.logging.Client(
7373
project,
7474
credentials,
7575
_http=_http,

tests/unit/test__logging.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _make_one(self, project, credentials, **kw):
3232

3333
return _ErrorReportingLoggingAPI(project, credentials, **kw)
3434

35-
@mock.patch("google.cloud.logging.client.Client")
35+
@mock.patch("google.cloud.logging.Client")
3636
def test_ctor_defaults(self, mocked_cls):
3737
credentials = _make_credentials()
3838

@@ -43,7 +43,7 @@ def test_ctor_defaults(self, mocked_cls):
4343
self.PROJECT, credentials, _http=None, client_info=None, client_options=None
4444
)
4545

46-
@mock.patch("google.cloud.logging.client.Client")
46+
@mock.patch("google.cloud.logging.Client")
4747
def test_ctor_explicit(self, mocked_cls):
4848
credentials = _make_credentials()
4949
http = mock.Mock()
@@ -67,7 +67,7 @@ def test_ctor_explicit(self, mocked_cls):
6767
client_options=client_options,
6868
)
6969

70-
@mock.patch("google.cloud.logging.client.Client")
70+
@mock.patch("google.cloud.logging.Client")
7171
def test_report_error_event(self, mocked_cls):
7272
credentials = _make_credentials()
7373
logging_api = self._make_one(self.PROJECT, credentials)

0 commit comments

Comments
 (0)