| 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 datetime import datetime | 5 from datetime import datetime |
| 6 import json | 6 import json |
| 7 import mock | 7 import mock |
| 8 import time | 8 import time |
| 9 | 9 |
| 10 from common.waterfall import buildbucket_client | 10 from common.waterfall import buildbucket_client |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 monitor_try_job_pipeline._GetError(build_response, None, False), | 586 monitor_try_job_pipeline._GetError(build_response, None, False), |
| 587 (expected_error_dict, try_job_error.UNKNOWN)) | 587 (expected_error_dict, try_job_error.UNKNOWN)) |
| 588 | 588 |
| 589 def testReturnNoneIfNoTryJobId(self): | 589 def testReturnNoneIfNoTryJobId(self): |
| 590 master_name = 'm' | 590 master_name = 'm' |
| 591 builder_name = 'b' | 591 builder_name = 'b' |
| 592 build_number = 1 | 592 build_number = 1 |
| 593 pipeline = MonitorTryJobPipeline() | 593 pipeline = MonitorTryJobPipeline() |
| 594 try_job = WfTryJob.Create(master_name, builder_name, build_number) | 594 try_job = WfTryJob.Create(master_name, builder_name, build_number) |
| 595 test_result = pipeline.run(try_job.key.urlsafe(), failure_type.TEST, None) | 595 test_result = pipeline.run(try_job.key.urlsafe(), failure_type.TEST, None) |
| 596 |
| 596 self.assertIsNone(test_result) | 597 self.assertIsNone(test_result) |
| OLD | NEW |