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

Unified Diff: infra_libs/ts_mon/test/config_test.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: add noncululativedistribution metric to ts_mon imports Created 5 years, 4 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/targets.py ('k') | infra_libs/ts_mon/test/distribution_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/test/config_test.py
diff --git a/infra_libs/ts_mon/test/config_test.py b/infra_libs/ts_mon/test/config_test.py
index d7026dee9c7d6863331cb7c613e9c9303d02d633..3dda42e2dd4efb472626ede2ad0e9fb6de77d927 100644
--- a/infra_libs/ts_mon/test/config_test.py
+++ b/infra_libs/ts_mon/test/config_test.py
@@ -14,7 +14,7 @@ from testing_support import auto_stub
from infra_libs.ts_mon import config
from infra_libs.ts_mon import interface
-from infra_libs.ts_mon import standard_metrics
+from infra_libs.ts_mon.common import standard_metrics
from infra_libs.ts_mon.test import stubs
@@ -35,7 +35,7 @@ class GlobalsTest(auto_stub.TestCase):
@mock.patch('requests.get')
@mock.patch('socket.getfqdn')
@mock.patch('infra_libs.ts_mon.monitors.ApiMonitor')
- @mock.patch('infra_libs.ts_mon.targets.DeviceTarget')
+ @mock.patch('infra_libs.ts_mon.common.targets.DeviceTarget')
def test_default_monitor_args(self, fake_target, fake_monitor, fake_fqdn,
fake_get):
singleton = mock.Mock()
@@ -64,7 +64,7 @@ class GlobalsTest(auto_stub.TestCase):
@mock.patch('requests.get')
@mock.patch('socket.getfqdn')
@mock.patch('infra_libs.ts_mon.monitors.ApiMonitor')
- @mock.patch('infra_libs.ts_mon.targets.DeviceTarget')
+ @mock.patch('infra_libs.ts_mon.common.targets.DeviceTarget')
def test_fallback_monitor_args(self, fake_target, fake_monitor, fake_fqdn,
fake_get):
singleton = mock.Mock()
@@ -89,7 +89,7 @@ class GlobalsTest(auto_stub.TestCase):
@mock.patch('socket.getfqdn')
@mock.patch('infra_libs.ts_mon.monitors.ApiMonitor')
- @mock.patch('infra_libs.ts_mon.targets.DeviceTarget')
+ @mock.patch('infra_libs.ts_mon.common.targets.DeviceTarget')
def test_manual_flush(self, fake_target, fake_monitor, fake_fqdn):
singleton = mock.Mock()
fake_monitor.return_value = singleton
@@ -171,7 +171,7 @@ class GlobalsTest(auto_stub.TestCase):
self.assertIs(interface.state.global_monitor, singleton)
@mock.patch('infra_libs.ts_mon.monitors.ApiMonitor')
- @mock.patch('infra_libs.ts_mon.targets.DeviceTarget')
+ @mock.patch('infra_libs.ts_mon.common.targets.DeviceTarget')
def test_device_args(self, fake_target, _fake_monitor):
singleton = mock.Mock()
fake_target.return_value = singleton
@@ -187,7 +187,7 @@ class GlobalsTest(auto_stub.TestCase):
self.assertIs(interface.state.default_target, singleton)
@mock.patch('infra_libs.ts_mon.monitors.ApiMonitor')
- @mock.patch('infra_libs.ts_mon.targets.TaskTarget')
+ @mock.patch('infra_libs.ts_mon.common.targets.TaskTarget')
def test_task_args(self, fake_target, _fake_monitor):
singleton = mock.Mock()
fake_target.return_value = singleton
« no previous file with comments | « infra_libs/ts_mon/targets.py ('k') | infra_libs/ts_mon/test/distribution_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698