From 4c88726dab1025bc525ff3ced17ee99cd9902a58 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sat, 19 Jul 2014 00:45:17 +0100 Subject: [PATCH] Unittest - Make taskd the first argument of Task() * The most common case is to bind a client to a server and not customizing the location of the task binary --- test/basetest/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/basetest/task.py b/test/basetest/task.py index f6c263637..4338cbdf2 100644 --- a/test/basetest/task.py +++ b/test/basetest/task.py @@ -20,12 +20,12 @@ class Task(object): A taskw client should not be used after being destroyed. """ - def __init__(self, taskw="task", taskd=None): + def __init__(self, taskd=None, taskw="task"): """Initialize a Task warrior (client) that can interact with a taskd server. The task client runs in a temporary folder. - :arg taskw: Task binary to use as client (defaults: task in PATH) :arg taskd: Taskd instance for client-server configuration + :arg taskw: Task binary to use as client (defaults: task in PATH) """ self.taskw = taskw self.taskd = taskd