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

Unified Diff: appengine/findit/handlers/flake/test/check_flake_test.py

Issue 2243673002: [Findit] Added algorithm to analysis (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: gclient sync Created 4 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 | « appengine/findit/handlers/flake/flake_dashboard.py ('k') | appengine/findit/model/base_analysis.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/flake/test/check_flake_test.py
diff --git a/appengine/findit/handlers/flake/test/check_flake_test.py b/appengine/findit/handlers/flake/test/check_flake_test.py
index 35b1394bce69b56dbb0027e3e366c7bf2795ae33..9e412ca9e243735f6752d953c425edaf5a491710 100644
--- a/appengine/findit/handlers/flake/test/check_flake_test.py
+++ b/appengine/findit/handlers/flake/test/check_flake_test.py
@@ -7,6 +7,7 @@ import webapp2
from handlers.flake import check_flake
from model.flake.master_flake_analysis import MasterFlakeAnalysis
from model import analysis_status
+from model.analysis_status import STATUS_TO_DESCRIPTION
from waterfall.test import wf_testcase
@@ -70,6 +71,9 @@ class CheckFlakeTest(wf_testcase.WaterfallTestCase):
self.assertEquals(200, response.status_int)
expected_check_flake_result ={
- 'success_rates': [[int(build_number), success_rate]]
+ 'success_rates': [[int(build_number), success_rate]],
+ 'analysis_status': STATUS_TO_DESCRIPTION.get(
+ master_flake_analysis.status),
+ 'suspected_flake_build_number': None
}
self.assertEqual(expected_check_flake_result, response.json_body)
« no previous file with comments | « appengine/findit/handlers/flake/flake_dashboard.py ('k') | appengine/findit/model/base_analysis.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698