Skip to content

Commit 06dd0b2

Browse files
committed
removing onwindows redundant function from test folder's util.py
1 parent 8d3f692 commit 06dd0b2

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

tests/test_check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
import cwltool.workflow
99
import pytest
1010
from cwltool.main import main
11+
from cwltool.utils import onWindows
1112

12-
from .util import get_data, onWindows
13+
from .util import get_data
1314

1415

1516
class TestCheck(unittest.TestCase):

tests/test_ext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import cwltool.process
1212
import cwltool.workflow
1313
from cwltool.main import main
14-
15-
from .util import get_data, onWindows
14+
from cwltool.utils import onWindows
15+
from .util import get_data
1616

1717

1818
@pytest.mark.skipif(onWindows(),

tests/test_relax_path_checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
import unittest
33
import pytest
44
from tempfile import NamedTemporaryFile
5-
from .util import onWindows
5+
66
from cwltool.main import main
7+
from cwltool.utils import onWindows
78

89

910
class ToolArgparse(unittest.TestCase):

tests/test_toolargparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from tempfile import NamedTemporaryFile
55

66
from cwltool.main import main
7+
from cwltool.utils import onWindows
78

8-
from .util import get_data, onWindows
9-
9+
from .util import get_data
1010

1111
class ToolArgparse(unittest.TestCase):
1212
script = '''

tests/util.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,3 @@ def get_data(filename):
1717
if not filepath or not os.path.isfile(filepath):
1818
filepath = os.path.join(os.path.dirname(__file__), os.pardir, filename)
1919
return filepath
20-
21-
# Check if we are on windows OS
22-
def onWindows():
23-
# type: () -> (bool)
24-
return os.name == 'nt'

0 commit comments

Comments
 (0)