| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import mock | 6 import mock |
| 7 import webapp2 | 7 import webapp2 |
| 8 | 8 |
| 9 from google.appengine.datastore.datastore_query import Cursor | 9 from google.appengine.datastore.datastore_query import Cursor |
| 10 | 10 |
| 11 from handlers.flake import list_flakes | 11 from handlers.flake import list_flakes |
| 12 from handlers.flake.list_flakes import FilterMasterFlakeAnalysis | 12 from handlers.flake.list_flakes import FilterMasterFlakeAnalysis |
| 13 from lib import time_util | 13 from libs import time_util |
| 14 from model import analysis_status | 14 from model import analysis_status |
| 15 from model import result_status | 15 from model import result_status |
| 16 from model.flake.master_flake_analysis import MasterFlakeAnalysis | 16 from model.flake.master_flake_analysis import MasterFlakeAnalysis |
| 17 from waterfall.test import wf_testcase | 17 from waterfall.test import wf_testcase |
| 18 | 18 |
| 19 | 19 |
| 20 class FilterFlakeTest(wf_testcase.WaterfallTestCase): | 20 class FilterFlakeTest(wf_testcase.WaterfallTestCase): |
| 21 app_module = webapp2.WSGIApplication([ | 21 app_module = webapp2.WSGIApplication([ |
| 22 ('/waterfall/list-flakes', list_flakes.ListFlakes), | 22 ('/waterfall/list-flakes', list_flakes.ListFlakes), |
| 23 ], debug=True) | 23 ], debug=True) |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 'step_name_filter': self.step_name1, | 244 'step_name_filter': self.step_name1, |
| 245 'test_name_filter': '', | 245 'test_name_filter': '', |
| 246 'result_status_filter': result_status.UNSPECIFIED, | 246 'result_status_filter': result_status.UNSPECIFIED, |
| 247 'prev_cursor': '', | 247 'prev_cursor': '', |
| 248 'cursor': '', | 248 'cursor': '', |
| 249 'more': more, | 249 'more': more, |
| 250 } | 250 } |
| 251 | 251 |
| 252 self.assertEquals(response.json_body, expected_result) | 252 self.assertEquals(response.json_body, expected_result) |
| 253 self.assertEquals(200, response.status_int) | 253 self.assertEquals(200, response.status_int) |
| OLD | NEW |