This repository was archived by the owner on Jun 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
# python-cwlgen
2
2
3
- (From original repository)
4
-
5
3
[ ![ Build Status] ( https://travis-ci.org/common-workflow-language/python-cwlgen.svg?branch=master )] ( https://travis-ci.org/common-workflow-language/python-cwlgen )
6
4
[ ![ codecov] ( https://codecov.io/gh/common-workflow-language/python-cwlgen/branch/master/graph/badge.svg )] ( https://codecov.io/gh/common-workflow-language/python-cwlgen )
7
5
[ ![ Documentation Status] ( https://readthedocs.org/projects/python-cwlgen/badge/?version=latest )] ( http://python-cwlgen.readthedocs.io/en/latest/?badge=latest )
@@ -27,20 +25,20 @@ The [user guide](http://www.commonwl.org/user_guide/01-introduction/index.html)
27
25
This python repository is a python wrapper for _ most_ of the classes (work in progress),
28
26
allowing you to build the structure of the workflow in Python and have this module generate and export CWL for you.
29
27
30
- ** Nb:** This isn 't going to sanity or quality check Workflows or CommandLineTools for you, use
31
- [ CWLTool] ( https://github.com/common-workflow-language/cwltool ) or [ WOMTool ] ( https://cromwell.readthedocs.io/en/develop/WOMtool/ ) for that.
28
+ ** Nb:** This doesn 't check the logic of Workflows or CommandLineTools for you.
29
+ [ CWLTool] ( https://github.com/common-workflow-language/cwltool ) has a ` --validate ` mode that you can use .
32
30
33
31
## Quick-start guide
34
32
35
33
You can install python-cwlgen through pip with the following command:
36
34
37
- ```
35
+ ``` bash
38
36
pip install cwlgen
39
37
```
40
38
41
- ## How it works ?
39
+ ### How it works ?
42
40
43
- There's a pretty close copy of the cwl specifications ([ Workflow] ( https://www.commonwl.org/v1.0/Workflow.html ) |
41
+ There's a copy of the cwl specifications ([ Workflow] ( https://www.commonwl.org/v1.0/Workflow.html ) |
44
42
[ CommandLineTool] ( https://www.commonwl.org/v1.0/CommandLineTool.html ) ), where the Python classes mirror the CWL spec.
45
43
This repository also includes docstrings to give you context of classes and their properties.
46
44
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def test_export(self):
44
44
45
45
def test_export_without_lib (self ):
46
46
tool = self .js_req_nolib .get_dict ()
47
- self .assertEqual (tool , {})
47
+ self .assertDictEqual (tool , {})
48
48
49
49
50
50
class TestDockerRequirement (unittest .TestCase ):
@@ -82,7 +82,7 @@ def test_export(self):
82
82
83
83
def test_missing_export (self ):
84
84
dr = cwlgen .DockerRequirement ()
85
- self .assertEqual (dr .get_dict (), {})
85
+ self .assertDictEqual (dr .get_dict (), {})
86
86
87
87
88
88
class TestSubworkflowFeatureRequirement (unittest .TestCase ):
@@ -95,7 +95,7 @@ def test_init(self):
95
95
96
96
def test_add (self ):
97
97
tool = self .req .get_dict ()
98
- self .assertEqual (tool , {})
98
+ self .assertDictEqual (tool , {})
99
99
100
100
101
101
class TestSoftwareRequirement (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments