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

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

Issue 2135603003: Make MockOptions a thin wrapper around optparse.Values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/tool/mock_tool.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
index da91957ff01169f34759c1f200de064a1881e9d4..e74c2c1d8add7911ba549c560f0016d837cf3a45 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
@@ -36,9 +36,13 @@ from webkitpy.tool.mock_tool import MockWebKitPatch, MockOptions
class PrintExpectationsTest(unittest.TestCase):
- def run_test(self, tests, expected_stdout, platform='test-win-win7', **args):
- options = MockOptions(all=False, csv=False, full=False, platform=platform,
- include_keyword=[], exclude_keyword=[], paths=False).update(**args)
+ def run_test(self, tests, expected_stdout, platform='test-win-win7', **kwargs):
+ options_defaults = {
+ 'all': False, 'csv': False, 'full': False, 'platform': platform,
+ 'include_keyword': [], 'exclude_keyword': [], 'paths': False,
+ }
+ options_defaults.update(kwargs)
+ options = MockOptions(**options_defaults)
tool = MockWebKitPatch()
tool.port_factory.all_port_names = lambda: [
'test-linux-trusty', 'test-linux-precise',
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/tool/mock_tool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698