File tree Expand file tree Collapse file tree 1 file changed +58
-3
lines changed Expand file tree Collapse file tree 1 file changed +58
-3
lines changed Original file line number Diff line number Diff line change 4
4
from cwltool .context import LoadingContext
5
5
6
6
7
- snippet = {
7
+ snippet = [ {
8
8
"cwlVersion" : "v1.0" ,
9
9
"class" : "CommandLineTool" ,
10
10
"inputs" : [
46
46
"baseCommand" : "echo" ,
47
47
"outputs" : [],
48
48
"id" : "anon_enum_inside_array.cwl" ,
49
- }
49
+ },{
50
+ "cwlVersion" : "v1.0" ,
51
+ "class" : "CommandLineTool" ,
52
+ "requirements" : [
53
+ {
54
+ "types" : [
55
+ {
56
+ "name" : "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params" ,
57
+ "type" : "record" ,
58
+ "fields" : [
59
+ {
60
+ "type" : [
61
+ "null" ,
62
+ {
63
+ "type" : "enum" ,
64
+ "symbols" : [
65
+ "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh37" ,
66
+ "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh38" ,
67
+ "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCm38"
68
+ ]
69
+ }
70
+ ],
71
+ "name" : "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build"
72
+ },
73
+ {
74
+ "type" : [
75
+ "null" ,
76
+ {
77
+ "type" : "enum" ,
78
+ "symbols" : [
79
+ "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/species/homo_sapiens" ,
80
+ "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/species/mus_musculus"
81
+ ]
82
+ }
83
+ ],
84
+ "name" : "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/species"
85
+ }
86
+ ]
87
+ }
88
+ ],
89
+ "class" : "SchemaDefRequirement"
90
+ }
91
+ ],
92
+ "inputs" : [
93
+ {
94
+ "type" : "anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params" ,
95
+ "id" : "anon_enum_inside_array_inside_schemadef.cwl#first"
96
+ }
97
+ ],
98
+ "baseCommand" : "echo" ,
99
+ "outputs" : [
100
+ ],
101
+ "id" : "anon_enum_inside_array_inside_schemadef.cwl" ,
102
+ }]
103
+
50
104
51
- def test_anon_types ():
105
+ @pytest .mark .parametrize ('snippet' , snippet )
106
+ def test_anon_types (snippet ):
52
107
CommandLineTool (snippet , LoadingContext ())
You can’t perform that action at this time.
0 commit comments