File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
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 ())
You can’t perform that action at this time.
0 commit comments