| Index: appengine/findit/waterfall/test/schedule_try_job_pipeline_test.py
|
| diff --git a/appengine/findit/waterfall/test/schedule_try_job_pipeline_test.py b/appengine/findit/waterfall/test/schedule_try_job_pipeline_test.py
|
| index 34b633e69495d54c974cb6dfb87d8f68c7ef012f..864b6a1145616e6d00626b1f2324253e657d8345 100644
|
| --- a/appengine/findit/waterfall/test/schedule_try_job_pipeline_test.py
|
| +++ b/appengine/findit/waterfall/test/schedule_try_job_pipeline_test.py
|
| @@ -2,22 +2,14 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -from testing_utils import testing
|
| -
|
| from common import buildbucket_client
|
| from model.wf_try_job import WfTryJob
|
| -from waterfall import waterfall_config
|
| from waterfall.schedule_try_job_pipeline import ScheduleTryJobPipeline
|
| +from waterfall.test import wf_configured_test_case
|
| from waterfall.try_job_type import TryJobType
|
|
|
|
|
| -class ScheduleTryjobPipelineTest(testing.AppengineTestCase):
|
| -
|
| - def _Mock_GetTrybotForWaterfallBuilder(self, *_):
|
| - def MockedGetTrybotForWaterfallBuilder(*_):
|
| - return 'linux_chromium_variable', 'master.tryserver.chromium.linux'
|
| - self.mock(waterfall_config, 'GetTrybotForWaterfallBuilder',
|
| - MockedGetTrybotForWaterfallBuilder)
|
| +class ScheduleTryjobPipelineTest(wf_configured_test_case.WaterfallTestCase):
|
|
|
| def _Mock_TriggerTryJobs(self, responses):
|
| def MockedTriggerTryJobs(*_):
|
| @@ -96,7 +88,7 @@ class ScheduleTryjobPipelineTest(testing.AppengineTestCase):
|
| }
|
| }
|
| ]
|
| - self._Mock_GetTrybotForWaterfallBuilder(master_name, builder_name)
|
| +
|
| self._Mock_TriggerTryJobs(responses)
|
|
|
| WfTryJob.Create(master_name, builder_name, build_number).put()
|
| @@ -130,7 +122,6 @@ class ScheduleTryjobPipelineTest(testing.AppengineTestCase):
|
| }
|
| }
|
| ]
|
| - self._Mock_GetTrybotForWaterfallBuilder(master_name, builder_name)
|
| self._Mock_TriggerTryJobs(responses)
|
|
|
| WfTryJob.Create(master_name, builder_name, build_number).put()
|
|
|