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

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

Issue 2361583002: [Findit] UI change and triage change for cl level trige. (Closed)
Patch Set: Address comments Created 4 years, 3 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 import datetime 5 import datetime
6 6
7 from testing_utils import testing 7 from testing_utils import testing
8 8
9 from model.wf_build import WfBuild 9 from model.wf_build import WfBuild
10 from waterfall import build_util 10 from waterfall import build_util
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 builder_name = 'b' 177 builder_name = 'b'
178 build_number = 123 178 build_number = 123
179 build = WfBuild.Create(master_name, builder_name, build_number) 179 build = WfBuild.Create(master_name, builder_name, build_number)
180 build.data = '{"times": [1467738821, %s]}' % end_time 180 build.data = '{"times": [1467738821, %s]}' % end_time
181 build.completed = True 181 build.completed = True
182 build.last_crawled_time = self._TimeBeforeNowBySeconds(10) 182 build.last_crawled_time = self._TimeBeforeNowBySeconds(10)
183 build.put() 183 build.put()
184 184
185 self.assertEqual(expected_time, 185 self.assertEqual(expected_time,
186 build_util.GetBuildEndTime( 186 build_util.GetBuildEndTime(
187 master_name, builder_name, build_number)) 187 master_name, builder_name, build_number))
188
189 def testGetBuildKeyForBuildInfo(self):
190 master_name = 'm'
191 builder_name = 'b'
192 build_number = 123
193
194 expected_build_key = '%s/%s/%d' %(master_name, builder_name, build_number)
195
196 self.assertEqual(
197 expected_build_key,
198 build_util.GetBuildKeyForBuildInfo(
199 master_name, builder_name, build_number))
OLDNEW
« appengine/findit/templates/build_failure.html ('K') | « appengine/findit/waterfall/build_util.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698