We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a972860 commit a7acfcfCopy full SHA for a7acfcf
tests/test_check.py
@@ -1,15 +1,17 @@
1
-from __future__ import absolute_import
2
-
3
-import unittest
+import pytest
4
5
from cwltool.main import main
6
7
from .util import get_data, needs_docker
8
9
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)
+bad_flows = [
+ 'tests/wf/badout1.cwl',
+ 'tests/wf/badout2.cwl',
+ 'tests/wf/badout3.cwl'
+]
+
+@needs_docker
+@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