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

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

Issue 1847613002: Remove unused imports in webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 flakytests 5 import flakytests
6 6
7 from webkitpy.common.checkout.scm.scm_mock import MockSCM
8 from webkitpy.layout_tests.layout_package import bot_test_expectations 7 from webkitpy.layout_tests.layout_package import bot_test_expectations
9 from webkitpy.layout_tests.port import builders 8 from webkitpy.layout_tests.port import builders
10 from webkitpy.tool.commands.commandtest import CommandsTest 9 from webkitpy.tool.commands.commandtest import CommandsTest
11 from webkitpy.tool.mocktool import MockTool, MockOptions 10 from webkitpy.tool.mocktool import MockTool, MockOptions
12 11
13 class FakeBotTestExpectations(object): 12 class FakeBotTestExpectations(object):
14 def expectation_lines(self, only_ignore_very_flaky=False): 13 def expectation_lines(self, only_ignore_very_flaky=False):
15 return [] 14 return []
16 15
17 16
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 command = flakytests.FlakyTests() 69 command = flakytests.FlakyTests()
71 tool = MockTool() 70 tool = MockTool()
72 command.expectations_factory = FakeBotTestExpectationsFactory 71 command.expectations_factory = FakeBotTestExpectationsFactory
73 options = MockOptions(upload=True) 72 options = MockOptions(upload=True)
74 expected_stdout = flakytests.FlakyTests.OUTPUT % ( 73 expected_stdout = flakytests.FlakyTests.OUTPUT % (
75 flakytests.FlakyTests.HEADER, 74 flakytests.FlakyTests.HEADER,
76 '', 75 '',
77 flakytests.FlakyTests.FLAKINESS_DASHBOARD_URL % '') + '\n' 76 flakytests.FlakyTests.FLAKINESS_DASHBOARD_URL % '') + '\n'
78 77
79 self.assert_execute_outputs(command, options=options, tool=tool, expecte d_stdout=expected_stdout) 78 self.assert_execute_outputs(command, options=options, tool=tool, expecte d_stdout=expected_stdout)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698