Skip to content

Commit a7acfcf

Browse files
committed
maintenance: remove unittest from test_check
1 parent a972860 commit a7acfcf

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

tests/test_check.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
from __future__ import absolute_import
2-
3-
import unittest
1+
import pytest
42

53
from cwltool.main import main
64

75
from .util import get_data, needs_docker
86

97

10-
class TestCheck(unittest.TestCase):
11-
@needs_docker
12-
def test_output_checking(self):
13-
self.assertEquals(main([get_data('tests/wf/badout1.cwl')]), 1)
14-
self.assertEquals(main([get_data('tests/wf/badout2.cwl')]), 1)
15-
self.assertEquals(main([get_data('tests/wf/badout3.cwl')]), 1)
8+
bad_flows = [
9+
'tests/wf/badout1.cwl',
10+
'tests/wf/badout2.cwl',
11+
'tests/wf/badout3.cwl'
12+
]
13+
14+
@needs_docker
15+
@pytest.mark.parametrize('bad_flow', bad_flows)
16+
def test_output_checking(bad_flow):
17+
assert main([get_data(bad_flow)]) == 1

0 commit comments

Comments
 (0)