mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
UnitTest - Alias for runSuccess
* Use t() (given t = Task()) as an alias to t.runSuccess()
This commit is contained in:
parent
ceaf9d3462
commit
6a28c2d175
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ class Task(object):
|
|||
txt = super(Task, self).__repr__()
|
||||
return "{0} running from {1}>".format(txt[:-1], self.datadir)
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
"Alias to runSuccess"
|
||||
return self.runSuccess(*args, **kwargs)
|
||||
|
||||
def bind_taskd_server(self, taskd):
|
||||
"""Configure the present task client to talk to given taskd server
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue