Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py

Issue 2469153002: Remove remaining unused imports in webkitpy. (Closed)
Patch Set: Remove unused imports in webkitpy. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 json 5 import json
6 import optparse 6 import optparse
7 7
8 from webkitpy.common.net.buildbot import Build 8 from webkitpy.common.net.buildbot import Build
9 from webkitpy.common.net.git_cl import GitCL
9 from webkitpy.common.net.rietveld import Rietveld 10 from webkitpy.common.net.rietveld import Rietveld
10 from webkitpy.common.net.web_mock import MockWeb 11 from webkitpy.common.net.web_mock import MockWeb
11 from webkitpy.common.net.git_cl import GitCL
12 from webkitpy.common.system.executive_mock import MockExecutive2
13 from webkitpy.common.system.logtesting import LoggingTestCase 12 from webkitpy.common.system.logtesting import LoggingTestCase
14 from webkitpy.layout_tests.builder_list import BuilderList 13 from webkitpy.layout_tests.builder_list import BuilderList
15 from webkitpy.tool.commands.rebaseline_cl import RebaselineCL 14 from webkitpy.tool.commands.rebaseline_cl import RebaselineCL
16 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase 15 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase
17 16
18 17
19 class RebaselineCLTest(BaseTestCase, LoggingTestCase): 18 class RebaselineCLTest(BaseTestCase, LoggingTestCase):
20 command_constructor = RebaselineCL 19 command_constructor = RebaselineCL
21 20
22 def setUp(self): 21 def setUp(self):
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 self.assertTrue(self.command.trigger_jobs_for_missing_builds([ 230 self.assertTrue(self.command.trigger_jobs_for_missing_builds([
232 Build('MOCK Try Linux', None), 231 Build('MOCK Try Linux', None),
233 ])) 232 ]))
234 self.assertEqual(self.tool.executive.calls, [['git', 'cl', 'try', '-b', 'MOCK Try Win']]) 233 self.assertEqual(self.tool.executive.calls, [['git', 'cl', 'try', '-b', 'MOCK Try Win']])
235 self.assertLog([ 234 self.assertLog([
236 'INFO: There are existing pending builds for:\n', 235 'INFO: There are existing pending builds for:\n',
237 'INFO: MOCK Try Linux\n', 236 'INFO: MOCK Try Linux\n',
238 'INFO: Triggering try jobs for:\n', 237 'INFO: Triggering try jobs for:\n',
239 'INFO: MOCK Try Win\n', 238 'INFO: MOCK Try Win\n',
240 ]) 239 ])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698