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

Side by Side Diff: appengine/findit/handlers/flake/test/check_flake_test.py

Issue 2131473003: UI for the regression range test. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: +tests and lint Created 4 years, 5 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
(Empty)
1 from handlers.flake import check_flake
chanli 2016/07/27 21:52:18 We need the comment for copyright to be at the top
caiw 2016/07/27 23:27:11 Done.
2 from waterfall.test import wf_testcase
3 import webapp2
chanli 2016/07/27 21:52:18 this import should be at the first group like this
caiw 2016/07/27 23:27:11 Done.
4
5
6 class CheckFlakeTest(wf_testcase.WaterfallTestCase):
7 app_module = webapp2.WSGIApplication([
8 ('/waterfall/check-flake', check_flake.CheckFlake),
9 ], debug=True)
10
11 def setUp(self):
12 super(CheckFlakeTest, self).setUp()
chanli 2016/07/27 21:52:18 This setUp can be deleted.
caiw 2016/07/27 23:27:11 Done.
13
14 def testBasicFlow(self):
15 master_name = 'm'
16 builder_name = 'b'
17 build_number = '123'
18 step_name = 's'
19 test_name = 't'
20
21 self.mock_current_user(user_email='test@chromium.org', is_admin=True)
22
23 response = self.test_app.get('/waterfall/check-flake', params={
24 'master_name': master_name,
25 'builder_name': builder_name,
26 'build_number': build_number,
27 'step_name': step_name,
28 'test_name': test_name})
29 self.assertEquals(200, response.status_int)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698