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

Side by Side Diff: appengine/findit/waterfall/test/waterfall_config_test.py

Issue 2272953002: [Findit] Moving check flake parameters to config (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fixing naming in html file 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from waterfall import waterfall_config 5 from waterfall import waterfall_config
6 from waterfall.test import wf_testcase 6 from waterfall.test import wf_testcase
7 7
8 8
9 class MastersTest(wf_testcase.WaterfallTestCase): 9 class MastersTest(wf_testcase.WaterfallTestCase):
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 self.assertTrue( 126 self.assertTrue(
127 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2')) 127 waterfall_config.ShouldSkipTestTryJobs('master2', 'builder2'))
128 128
129 def testGetActionSettings(self): 129 def testGetActionSettings(self):
130 self.assertEqual( 130 self.assertEqual(
131 { 131 {
132 'cr_notification_build_threshold': 2, 132 'cr_notification_build_threshold': 2,
133 'cr_notification_latency_limit_minutes': 30, 133 'cr_notification_latency_limit_minutes': 30,
134 }, 134 },
135 waterfall_config.GetActionSettings()) 135 waterfall_config.GetActionSettings())
136
137 def testGetCheckFlakeSettings(self):
138 self.assertEqual(
139 {
140 'lower_flake_threshold': 0.02,
141 'upper_flake_threshold': 0.98,
142 'max_flake_in_a_row': 4,
143 'max_stable_in_a_row': 4
144 },
145 waterfall_config.GetCheckFlakeSettings())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698