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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py

Issue 1839193004: Run auto-formatter (autopep8) on webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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/common/system/workspace_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py
index 5d965f0e595b9286bf269825be943351ff10c4e7..97e176f5033c5709f479a55d61e725c37ed28d78 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py
@@ -51,10 +51,13 @@ class WorkspaceTest(unittest.TestCase):
def test_create_zip(self):
workspace = Workspace(None, MockExecutive(should_log=True))
expected_logs = "MOCK run_command: ['zip', '-9', '-r', '/zip/path', '.'], cwd=/source/path\n"
+
class MockZipFile(object):
+
def __init__(self, path):
self.filename = path
- archive = OutputCapture().assert_outputs(self, workspace.create_zip, ["/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
+ archive = OutputCapture().assert_outputs(self, workspace.create_zip, [
+ "/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
self.assertEqual(archive.filename, "/zip/path")
def test_create_zip_exception(self):
@@ -65,8 +68,11 @@ MOCK ScriptError
output: MOCK output of child process
"""
+
class MockZipFile(object):
+
def __init__(self, path):
self.filename = path
- archive = OutputCapture().assert_outputs(self, workspace.create_zip, ["/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
+ archive = OutputCapture().assert_outputs(self, workspace.create_zip, [
+ "/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
self.assertIsNone(archive)

Powered by Google App Engine
This is Rietveld 408576698