@@ -169,10 +169,31 @@ def test_typecompare(self):
169
169
{'items' : ['int' ], 'type' : 'array' }))
170
170
171
171
def test_recordcompare (self ):
172
- src = {'fields' : [{'type' : {'items' : 'string' , 'type' : 'array' }, 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/description' }, {'type' : {'items' : 'File' , 'type' : 'array' }, 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/vrn_file' }], 'type' : 'record' , 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec' }
173
- sink = {'fields' : [{'type' : {'items' : 'string' , 'type' : 'array' }, 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/description' }, {'type' : {'items' : 'File' , 'type' : 'array' }, 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/vrn_file' }], 'type' : 'record' , 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec' }
174
- self .assertTrue (cwltool .workflow .can_assign_src_to_sink (src , sink ))
172
+ src = {
173
+ 'fields' : [{
174
+ 'type' : { 'items' : 'string' , 'type' : 'array' },
175
+ 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/description'
176
+ },
177
+ {
178
+ 'type' : { 'items' : 'File' , 'type' : 'array' },
179
+ 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec/vrn_file'
180
+ }],
181
+ 'type' : 'record' ,
182
+ 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/wf-variantcall.cwl#vc_rec/vc_rec'
183
+ }
184
+ sink = {
185
+ 'fields' : [{
186
+ 'type' : {'items' : 'string' , 'type' : 'array' },
187
+ 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/description'
188
+ },
189
+ {
190
+ 'type' : {'items' : 'File' , 'type' : 'array' },
191
+ 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec/vrn_file'
192
+ }],
193
+ 'type' : 'record' ,
194
+ 'name' : u'file:///home/chapmanb/drive/work/cwl/test_bcbio_cwl/run_info-cwl-workflow/steps/vc_output_record.cwl#vc_rec/vc_rec' }
175
195
196
+ self .assertTrue (cwltool .workflow .can_assign_src_to_sink (src , sink ))
176
197
177
198
178
199
if __name__ == '__main__' :
0 commit comments