| OLD | NEW |
| 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 pipeline_utils.appengine_third_party_pipeline_src_pipeline import handlers | 5 from pipeline_utils.appengine_third_party_pipeline_python_src_pipeline \ |
| 6 import handlers |
| 6 from testing_utils import testing | 7 from testing_utils import testing |
| 7 | 8 |
| 8 from model.wf_analysis import WfAnalysis | 9 from model.wf_analysis import WfAnalysis |
| 9 from model import wf_analysis_status | 10 from model import wf_analysis_status |
| 10 from model import wf_analysis_result_status | 11 from model import wf_analysis_result_status |
| 11 from waterfall import build_failure_analysis | 12 from waterfall import build_failure_analysis |
| 12 from waterfall import identify_culprit_pipeline | 13 from waterfall import identify_culprit_pipeline |
| 13 | 14 |
| 14 | 15 |
| 15 class IdentifyCulpritPipelineTest(testing.AppengineTestCase): | 16 class IdentifyCulpritPipelineTest(testing.AppengineTestCase): |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 self.execute_queued_tasks() | 231 self.execute_queued_tasks() |
| 231 | 232 |
| 232 expected_suspected_cls = [] | 233 expected_suspected_cls = [] |
| 233 | 234 |
| 234 analysis = WfAnalysis.Get(master_name, builder_name, build_number) | 235 analysis = WfAnalysis.Get(master_name, builder_name, build_number) |
| 235 self.assertIsNotNone(analysis) | 236 self.assertIsNotNone(analysis) |
| 236 self.assertEqual(dummy_result, analysis.result) | 237 self.assertEqual(dummy_result, analysis.result) |
| 237 self.assertEqual(wf_analysis_status.ANALYZED, analysis.status) | 238 self.assertEqual(wf_analysis_status.ANALYZED, analysis.status) |
| 238 self.assertIsNone(analysis.result_status) | 239 self.assertIsNone(analysis.result_status) |
| 239 self.assertEqual(expected_suspected_cls, analysis.suspected_cls) | 240 self.assertEqual(expected_suspected_cls, analysis.suspected_cls) |
| OLD | NEW |