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

Unified Diff: appengine/findit/model/test/wf_analysis_test.py

Issue 1912483004: [Findit] Add failure type to dashboard. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 8 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 | « appengine/findit/handlers/test/list_analyses_test.py ('k') | appengine/findit/model/wf_analysis.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/model/test/wf_analysis_test.py
diff --git a/appengine/findit/model/test/wf_analysis_test.py b/appengine/findit/model/test/wf_analysis_test.py
index 904733ca4a5d3974171b77ea9726d4e162385bfb..ae5d3bb7d06ba01a496119f9fc60f63124b80949 100644
--- a/appengine/findit/model/test/wf_analysis_test.py
+++ b/appengine/findit/model/test/wf_analysis_test.py
@@ -139,3 +139,8 @@ class WfAnalysisTest(unittest.TestCase):
analysis = WfAnalysis.Create('m', 'b', 123)
analysis.result = {'failures': [{'step_name': 'browser_tests'}]}
self.assertEqual(failure_type.TEST, analysis.failure_type)
+
+ def testFailureTypeStr(self):
+ analysis = WfAnalysis.Create('m', 'b', 123)
+ analysis.result = {'failures': [{'step_name': 'browser_tests'}]}
+ self.assertEqual('test', analysis.failure_type_str)
« no previous file with comments | « appengine/findit/handlers/test/list_analyses_test.py ('k') | appengine/findit/model/wf_analysis.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698