X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/22b01b5632033b1578d5fc5170d2c048f102f163..c7570e6e693efbb3485fbcd309f804b715c2de84:/tasklib/tests.py?ds=inline;pf=etc 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'])