Chromium Code Reviews| OLD | NEW |
|---|---|
| (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) | |
| OLD | NEW |