Skip to content

Commit c68bb68

Browse files
committed
add test
1 parent e726f08 commit c68bb68

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

tests/test_anon_types.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import pytest
2+
3+
from cwltool.command_line_tool import CommandLineTool
4+
from cwltool.context import LoadingContext
5+
6+
7+
snippet = {
8+
"cwlVersion": "v1.0",
9+
"class": "CommandLineTool",
10+
"inputs": [
11+
{
12+
"type": {
13+
"type": "record",
14+
"fields": [
15+
{
16+
"type": [
17+
{
18+
"type": "enum",
19+
"symbols": [
20+
"anon_enum_inside_array.cwl#first/species/homo_sapiens",
21+
"anon_enum_inside_array.cwl#first/species/mus_musculus"
22+
]
23+
},
24+
"null"
25+
],
26+
"name": "anon_enum_inside_array.cwl#first/species"
27+
}
28+
]
29+
},
30+
"id": "anon_enum_inside_array.cwl#first"
31+
},
32+
{
33+
"type": [
34+
"null",
35+
{
36+
"type": "enum",
37+
"symbols": [
38+
"anon_enum_inside_array.cwl#second/homo_sapiens",
39+
"anon_enum_inside_array.cwl#second/mus_musculus"
40+
]
41+
}
42+
],
43+
"id": "anon_enum_inside_array.cwl#second"
44+
}
45+
],
46+
"baseCommand": "echo",
47+
"outputs": [],
48+
"id": "anon_enum_inside_array.cwl",
49+
}
50+
51+
def test_anon_types():
52+
CommandLineTool(snippet, LoadingContext())

0 commit comments

Comments
 (0)