mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unittest - default to ../src/ as location for task/taskd binaries
This commit is contained in:
parent
16af4d088c
commit
d9d3b47c31
3 changed files with 30 additions and 7 deletions
|
@ -5,7 +5,7 @@ import tempfile
|
|||
import shutil
|
||||
import atexit
|
||||
import unittest
|
||||
from .utils import run_cmd_wait, run_cmd_wait_nofail, which
|
||||
from .utils import run_cmd_wait, run_cmd_wait_nofail, which, binary_location
|
||||
from .exceptions import CommandError
|
||||
|
||||
|
||||
|
@ -20,7 +20,9 @@ class Task(object):
|
|||
|
||||
A taskw client should not be used after being destroyed.
|
||||
"""
|
||||
def __init__(self, taskd=None, taskw="task"):
|
||||
DEFAULT_TASK = binary_location("task")
|
||||
|
||||
def __init__(self, taskd=None, taskw=DEFAULT_TASK):
|
||||
"""Initialize a Task warrior (client) that can interact with a taskd
|
||||
server. The task client runs in a temporary folder.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue