Skip to content

Commit 01dd696

Browse files
committed
add another test
1 parent c68bb68 commit 01dd696

File tree

1 file changed

+58
-3
lines changed

1 file changed

+58
-3
lines changed

tests/test_anon_types.py

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from cwltool.context import LoadingContext
55

66

7-
snippet = {
7+
snippet = [{
88
"cwlVersion": "v1.0",
99
"class": "CommandLineTool",
1010
"inputs": [
@@ -46,7 +46,62 @@
4646
"baseCommand": "echo",
4747
"outputs": [],
4848
"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+
50104

51-
def test_anon_types():
105+
@pytest.mark.parametrize('snippet', snippet)
106+
def test_anon_types(snippet):
52107
CommandLineTool(snippet, LoadingContext())

0 commit comments

Comments
 (0)