3
3
import sys
4
4
5
5
pkg_root = os .path .abspath (os .path .join (os .path .dirname (__file__ ), '..' )) # noqa
6
- sys .path .insert (0 , pkg_root ) # noqa
6
+ sys .path .insert (0 , pkg_root ) # noqa
7
7
8
8
from wes_client .util import wf_info
9
9
@@ -18,13 +18,13 @@ class WorkflowInfoTest(unittest.TestCase):
18
18
remote = {'cwl' : 'https://raw.githubusercontent.com/common-workflow-language/workflow-service/master/testdata/md5sum.cwl' ,
19
19
'wdl' : 'https://raw.githubusercontent.com/common-workflow-language/workflow-service/master/testdata/md5sum.wdl' ,
20
20
'py' : 'https://raw.githubusercontent.com/common-workflow-language/workflow-service/master/test/test_integration.py' ,
21
- 'unsupported' : 'gs://topmed_workflow_testing/topmed_aligner/small_test_files_sbg/example_human_known_snp.py' , # TODO: find real external file of .py, .cwl, .wdl
21
+ 'unsupported' : 'gs://topmed_workflow_testing/topmed_aligner/small_test_files_sbg/example_human_known_snp.py' , # TODO: find real external file of .py, .cwl, .wdl
22
22
'unreachable' : 'https://fake.py' }
23
23
24
24
expected = {'cwl' : ('v1.0' , 'CWL' ),
25
- 'wdl' : ('draft-2' ,'WDL' ),
26
- 'py' : ('2.7' ,'PY' ),
27
- 'pyWithPrefix' : ('2.7' ,'PY' )}
25
+ 'wdl' : ('draft-2' , 'WDL' ),
26
+ 'py' : ('2.7' , 'PY' ),
27
+ 'pyWithPrefix' : ('2.7' , 'PY' )}
28
28
29
29
def testSupportedFormatChecking (self ):
30
30
"""
@@ -44,7 +44,6 @@ def testSupportedFormatChecking(self):
44
44
with self .assertRaises (TypeError ):
45
45
wf_info (location )
46
46
47
-
48
47
def testFileLocationChecking (self ):
49
48
"""
50
49
Check that the function rejects unsupported file locations.
0 commit comments