Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1050)

Unified Diff: infra_libs/ts_mon/common/test/monitors_test.py

Issue 1588623002: ts_mon: remove dependency on apiclient. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Remove gae_ts_mon/third_party Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra_libs/ts_mon/common/monitors.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/common/test/monitors_test.py
diff --git a/infra_libs/ts_mon/common/test/monitors_test.py b/infra_libs/ts_mon/common/test/monitors_test.py
index 9943374af903991940026910d587a56a1848ee45..69ea8badb10f275451421a826fd9af31cf40887e 100644
--- a/infra_libs/ts_mon/common/test/monitors_test.py
+++ b/infra_libs/ts_mon/common/test/monitors_test.py
@@ -82,7 +82,7 @@ class PubSubMonitorTest(unittest.TestCase):
@mock.patch('infra_libs.ts_mon.common.monitors.PubSubMonitor.'
'_load_credentials', autospec=True)
- @mock.patch('apiclient.discovery.build', autospec=True)
+ @mock.patch('googleapiclient.discovery.build', autospec=True)
def test_send(self, _discovery, _load_creds):
mon = monitors.PubSubMonitor('/path/to/creds.p8.json', 'myproject',
'mytopic')
@@ -111,7 +111,7 @@ class PubSubMonitorTest(unittest.TestCase):
@mock.patch('infra_libs.ts_mon.common.monitors.PubSubMonitor.'
'_load_credentials', autospec=True)
- @mock.patch('apiclient.discovery.build', autospec=True)
+ @mock.patch('googleapiclient.discovery.build', autospec=True)
def test_send_uninitialized(self, discovery, _load_creds):
"""Test initialization retry logic, and also un-instrumented http path."""
discovery.side_effect = EnvironmentError() # Fail initialization.
« no previous file with comments | « infra_libs/ts_mon/common/monitors.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698