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

Unified Diff: telemetry/telemetry/value/translate_common_values_unittest.py

Issue 1736313002: [TBMv2] Fix MRE failure translation (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 4 years, 10 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 | « telemetry/telemetry/value/translate_common_values.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/value/translate_common_values_unittest.py
diff --git a/telemetry/telemetry/value/translate_common_values_unittest.py b/telemetry/telemetry/value/translate_common_values_unittest.py
new file mode 100644
index 0000000000000000000000000000000000000000..fc492d5c5f8edb206b457f2c600eea53653163e4
--- /dev/null
+++ b/telemetry/telemetry/value/translate_common_values_unittest.py
@@ -0,0 +1,22 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import unittest
+import os
+
+from perf_insights.mre import failure
+
+from telemetry import page
+from telemetry import story
+from telemetry.value import translate_common_values
+
+class TranslateCommonValuesTest(unittest.TestCase):
+ def testTranslateMreFailure(self):
+ story_set = story.StorySet(base_dir=os.path.dirname(__file__))
+ p = page.Page('http://www.foo.com/', story_set, story_set.base_dir)
+
+ f = failure.Failure(None, 'foo', '/a.json', 'MyFailure', 'failure', 'stack')
+ fv = translate_common_values.TranslateMreFailure(f, p)
+
+ self.assertIn('stack', str(fv))
« no previous file with comments | « telemetry/telemetry/value/translate_common_values.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698