File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
-
3
- import unittest
4
-
5
1
from cwltool .main import main
6
2
7
3
from .util import get_data
8
4
9
5
10
- class CWLVersionChecks ( unittest . TestCase ):
11
- def test_missing_cwl_version ( self ):
12
- """no cwlVersion in the workflow"""
13
- self . assertEqual ( main ([ get_data ( 'tests/wf/missing_cwlVersion.cwl' )]), 1 )
14
- def test_incorrect_cwl_version (self ):
15
- """using cwlVersion: v0.1 in the workflow"""
16
- self . assertEqual ( main ([get_data ('tests/wf/wrong_cwlVersion.cwl' )]), 1 )
6
+ def test_missing_cwl_version ( ):
7
+ """no cwlVersion in the workflow"""
8
+ assert main ([ get_data ( 'tests/wf/missing_cwlVersion.cwl' )]) == 1
9
+
10
+ def test_incorrect_cwl_version ():
11
+ """using cwlVersion: v0.1 in the workflow"""
12
+ assert main ([get_data ('tests/wf/wrong_cwlVersion.cwl' )]) == 1
You can’t perform that action at this time.
0 commit comments