Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit a1055c5

Browse files
committed
Unit tests for InlineJavascriptRequirement without expressionLib
1 parent ff45acb commit a1055c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_unit_cwlgen.py

+6
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ def test_add(self):
198198
self.js_req.add(tool)
199199
self.assertEqual(tool, {'InlineJavascriptRequirement': {'expressionLib': ['expression']}})
200200

201+
def test_add_without_lib(self):
202+
tool = {}
203+
req = cwlgen.InlineJavascriptReq()
204+
req.add(tool)
205+
self.assertEqual(tool, {'InlineJavascriptRequirement': {}})
206+
201207

202208
class TestDockerRequirement(unittest.TestCase):
203209

0 commit comments

Comments
 (0)