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:
@@ -20,12 +20,12 @@ class Task(object):
|
|||||||
|
|
||||||
A taskw client should not be used after being destroyed.
|
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
|
"""Initialize a Task warrior (client) that can interact with a taskd
|
||||||
server. The task client runs in a temporary folder.
|
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 taskd: Taskd instance for client-server configuration
|
||||||
|
:arg taskw: Task binary to use as client (defaults: task in PATH)
|
||||||
"""
|
"""
|
||||||
self.taskw = taskw
|
self.taskw = taskw
|
||||||
self.taskd = taskd
|
self.taskd = taskd
|
||||||
|
|||||||
Reference in New Issue
Block a user