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

Unified Diff: appengine/findit/handlers/test/result_status_test.py

Issue 1827903002: [Findit] Modify handlers_util to prepare for the new UI change. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix bug when display builds that don't have failure-result-map Created 4 years, 9 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
Index: appengine/findit/handlers/test/result_status_test.py
diff --git a/appengine/findit/handlers/test/result_status_test.py b/appengine/findit/handlers/test/result_status_test.py
new file mode 100644
index 0000000000000000000000000000000000000000..5e3a9f332a2fa4ff0e85a365668f0a9037563572
--- /dev/null
+++ b/appengine/findit/handlers/test/result_status_test.py
@@ -0,0 +1,14 @@
+# 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.
+
+from testing_utils import testing
+
+from handlers import result_status
+from model import wf_analysis_status
+
+class ResultStatusTest(testing.AppengineTestCase):
+
+ def testToStatusMessage(self):
+ self.assertEqual(
lijeffrey 2016/03/28 23:35:04 nit: 2 spaces
chanli 2016/03/29 01:35:47 File deleted
+ 'Flaky tests.', result_status.ToStatusMessage()[result_status.FLAKY])

Powered by Google App Engine
This is Rietveld 408576698