aboutsummaryrefslogtreecommitdiff
path: root/bestflags/pipeline_process_test.py
diff options
context:
space:
mode:
authorYuheng Long <yuhenglong@google.com>2013-07-11 07:49:01 -0700
committerChromeBot <chrome-bot@google.com>2013-07-12 15:52:30 -0700
commit26ec76c8a9d4f5dd023513d2772fa6cd4b6749ea (patch)
treeb87fb33899111b369c1fd26b052ffaeaf1776fa0 /bestflags/pipeline_process_test.py
parent49358b75c25a44760e884245440dc96e55812d04 (diff)
downloadtoolchain-utils-26ec76c8a9d4f5dd023513d2772fa6cd4b6749ea.tar.gz
Rename the methods and use the dummy parameters.
Refactor methods names and substitute unused variables with dummy variables. BUG=None TEST=unit testing for the pipeline stage and pipeline workers. Change-Id: I237d893201853d8620ff886c8fb9012c38b83805 Reviewed-on: https://gerrit-int.chromium.org/40865 Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com> Reviewed-by: Simon Que <sque@google.com>
Diffstat (limited to 'bestflags/pipeline_process_test.py')
-rw-r--r--bestflags/pipeline_process_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bestflags/pipeline_process_test.py b/bestflags/pipeline_process_test.py
index 837ed76a..086c231b 100644
--- a/bestflags/pipeline_process_test.py
+++ b/bestflags/pipeline_process_test.py
@@ -14,7 +14,7 @@ import pipeline_process
ERROR = -334
-def MockHelper(done_dict, helper_queue, work_queue, result_queue):
+def MockHelper(done_dict, helper_queue, _, result_queue):
"""This method echos input to the output."""
while True:
if not helper_queue.empty():
@@ -27,18 +27,18 @@ def MockHelper(done_dict, helper_queue, work_queue, result_queue):
# verify that it does not get duplicate "1"s in the test.
result_queue.put(ERROR)
else:
- result_queue.put(('helper', task.get_key(0)))
+ result_queue.put(('helper', task.GetKey(0)))
-def MockWorker(task, buffer_queue, result_queue):
- result_queue.put(('worker', task.get_key(0)))
+def MockWorker(task, _, result_queue):
+ result_queue.put(('worker', task.GetKey(0)))
class MockTask(object):
def __init__(self, key):
self._key = key
- def get_key(self, stage):
+ def GetKey(self, _):
return self._key