X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/47ee2ff2a334a50137255faa54504594be9eaf6d..922cec4a15255e90f69356886de250de034372d1:/tasklib/tests.py?ds=sidebyside diff --git a/tasklib/tests.py b/tasklib/tests.py index 6cba1fc..1fd449c 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -4,6 +4,7 @@ import copy import datetime import itertools import json +import os import pytz import six import shutil @@ -68,7 +69,11 @@ class TaskWarriorTest(TasklibTest): def test_custom_command(self): # ensure that a custom command which contains multiple parts # is properly split up - tw = self.get_taskwarrior(task_command='wsl task') + tw = self.get_taskwarrior( + task_command='wsl task', + # prevent `_get_version` from running as `wsl` may not exist + version_override=os.getenv('TASK_VERSION'), + ) self.assertEqual(tw._get_task_command(), ['wsl', 'task'])