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

Unified Diff: infra_libs/ts_mon/common/test/targets_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/common/test/standard_metrics_test.py ('k') | infra_libs/ts_mon/config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/common/test/targets_test.py
diff --git a/infra_libs/ts_mon/test/targets_test.py b/infra_libs/ts_mon/common/test/targets_test.py
similarity index 84%
rename from infra_libs/ts_mon/test/targets_test.py
rename to infra_libs/ts_mon/common/test/targets_test.py
index 2388971756b6fc1be1632480ba71f057d3da6adb..a68f403dfed1fb2fe0fd5cde93f5ad13a1ba9949 100644
--- a/infra_libs/ts_mon/test/targets_test.py
+++ b/infra_libs/ts_mon/common/test/targets_test.py
@@ -4,9 +4,12 @@
import unittest
-from monacq.proto import metrics_pb2
-
-from infra_libs.ts_mon import targets
+try:
+ from monacq.proto import metrics_pb2
+ from infra_libs.ts_mon.common import targets
+except ImportError: # pragma: no cover
+ from monacq.proto import metrics_pb2
+ from common import targets
class DeviceTargetTest(unittest.TestCase):
« no previous file with comments | « infra_libs/ts_mon/common/test/standard_metrics_test.py ('k') | infra_libs/ts_mon/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698