Skip to content

Commit 43352a0

Browse files
committed
maintenance: remove unittest from test_cwl_version
1 parent a7acfcf commit 43352a0

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

tests/test_cwl_version.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
from __future__ import absolute_import
2-
3-
import unittest
4-
51
from cwltool.main import main
62

73
from .util import get_data
84

95

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

0 commit comments

Comments
 (0)