diff options
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') |