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
This commit is contained in:
Renato Alves 2014-07-19 00:45:17 +01:00
parent f9c1e33824
commit 4c88726dab

View file

@ -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