mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
f9c1e33824
commit
4c88726dab
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue