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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flaky_tests_unittest.py

Issue 2064313003: Rename files in webkitpy/tool to have underscores between words (for consistency). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flaky_tests_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flaky_tests_unittest.py
similarity index 86%
rename from third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests_unittest.py
rename to third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flaky_tests_unittest.py
index 729ee482db130cd724d8d3f826433003566c2f5f..15acb4f2e4b4c1d1c6744e9b1a87561b173b69bd 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flaky_tests_unittest.py
@@ -2,12 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import flakytests
-
from webkitpy.layout_tests.builder_list import BuilderList
from webkitpy.layout_tests.layout_package import bot_test_expectations
-from webkitpy.tool.commands.commandtest import CommandsTest
-from webkitpy.tool.mocktool import MockTool, MockOptions
+from webkitpy.tool.commands import flaky_tests
+from webkitpy.tool.commands.command_test import CommandsTest
+from webkitpy.tool.mock_tool import MockTool, MockOptions
class FakeBotTestExpectations(object):
@@ -61,7 +60,7 @@ class FlakyTestsTest(CommandsTest):
})
def test_merge_lines(self):
- command = flakytests.FlakyTests()
+ command = flaky_tests.FlakyTests()
factory = FakeBotTestExpectationsFactory(self.fake_builders_list())
lines = command._collect_expectation_lines(['foo-builder', 'bar-builder'], factory)
@@ -70,14 +69,14 @@ class FlakyTestsTest(CommandsTest):
self.assertEqual(lines[0].specifiers, ['Mac', 'Linux'])
def test_integration(self):
- command = flakytests.FlakyTests()
+ command = flaky_tests.FlakyTests()
tool = MockTool()
tool.builders = self.fake_builders_list()
command.expectations_factory = FakeBotTestExpectationsFactory
options = MockOptions(upload=True)
- expected_stdout = flakytests.FlakyTests.OUTPUT % (
- flakytests.FlakyTests.HEADER,
+ expected_stdout = flaky_tests.FlakyTests.OUTPUT % (
+ flaky_tests.FlakyTests.HEADER,
'',
- flakytests.FlakyTests.FLAKINESS_DASHBOARD_URL % '') + '\n'
+ flaky_tests.FlakyTests.FLAKINESS_DASHBOARD_URL % '') + '\n'
self.assert_execute_outputs(command, options=options, tool=tool, expected_stdout=expected_stdout)

Powered by Google App Engine
This is Rietveld 408576698