diff options
| author | Roy Sommer <illBeRoy@users.noreply.github.com> | 2020-11-28 00:56:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-28 00:56:16 +0200 |
| commit | a77e37f2f02e22f341f2221036bcdac6647807f3 (patch) | |
| tree | 38e43c7840db18d3b96ec50db15b1af6108f3e34 /tests | |
| parent | Release version 1.5.0 (diff) | |
| download | taskipy2-a77e37f2f02e22f341f2221036bcdac6647807f3.zip | |
Support Windows-Style Paths (#27)
use mslex instead of shlex when running on windows.
added a new windows sanity ci test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/fixtures/project_with_windows_task/pyproject.toml | 6 | ||||
| -rw-r--r-- | tests/test_taskipy.py | 3 | ||||
| -rw-r--r-- | tests/test_windows_sanity.py | 11 |
3 files changed, 18 insertions, 2 deletions
diff --git a/tests/fixtures/project_with_windows_task/pyproject.toml b/tests/fixtures/project_with_windows_task/pyproject.toml new file mode 100644 index 0000000..e78a30f --- /dev/null +++ b/tests/fixtures/project_with_windows_task/pyproject.toml @@ -0,0 +1,6 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" + +[tool.taskipy.tasks] +echo = "echo" diff --git a/tests/test_taskipy.py b/tests/test_taskipy.py index e87e184..bc227d4 100644 --- a/tests/test_taskipy.py +++ b/tests/test_taskipy.py @@ -5,11 +5,10 @@ import subprocess import time import unittest import warnings +import psutil # type: ignore from os import path from typing import List, Tuple -import psutil # type: ignore - from tests.utils.project import ( GenerateProjectFromFixture, GenerateProjectWithPyProjectToml, diff --git a/tests/test_windows_sanity.py b/tests/test_windows_sanity.py new file mode 100644 index 0000000..0b7dc55 --- /dev/null +++ b/tests/test_windows_sanity.py @@ -0,0 +1,11 @@ +import unittest + + +class WindowsSanityTestCase(unittest.TestCase): + ''' + This test case is a no-op, and exists only to ensure that windows paths work + as part of the windows sanity ci test. + ''' + + def test_windows_sanity(self): + print('sanity passed - test was run') |