@@ -259,6 +259,10 @@ def my_pipeline():
259259 ({"type" : "uri_file" }, {'job_output_type' : 'mltable' }, {'type' : 'mltable' }, True ),
260260 ({"type" : "uri_folder" }, {'job_output_type' : 'mltable' }, {'type' : 'mltable' }, True ),
261261 ({"type" : "mltable" }, {'job_output_type' : 'mltable' }, {'type' : 'mltable' }, True ),
262+ ({"type" : "mlflow_model" }, {'job_output_type' : 'mltable' }, {'type' : 'mltable' }, True ),
263+ ({"type" : "triton_model" }, {'job_output_type' : 'mltable' }, {'type' : 'mltable' }, True ),
264+ ({"type" : "custom_model" }, {'job_output_type' : 'mltable' }, {'type' : 'mltable' }, True ),
265+ ({"type" : "path" }, {'job_output_type' : 'mltable' }, {'type' : 'mltable' }, True ),
262266 ({"type" : "number" }, {}, {'type' : 'string' }, False ),
263267 ({"type" : "string" , "is_control" : True }, {}, {'type' : 'string' , "is_control" : True }, False ),
264268 ({"type" : "boolean" , "is_control" : True }, {}, {'type' : 'string' , "is_control" : True }, False ),
@@ -298,30 +302,3 @@ def my_pipeline():
298302 pipeline_component = my_job .component
299303 rest_component = pipeline_component ._to_rest_object ().as_dict ()
300304 assert rest_component ["properties" ]["component_spec" ]["outputs" ] == {'output' : component_out_dict }
301-
302- @pytest .mark .parametrize (
303- "out_type" , ["mlflow_model" , "triton_model" , "custom_model" ]
304- )
305- def test_parallel_for_output_unsupported_case (self , out_type ):
306- basic_component = load_component (
307- source = "./tests/test_configs/components/helloworld_component.yml" ,
308- params_override = [
309- {"outputs.component_out_path" : {"type" : out_type }}
310- ]
311- )
312-
313- @pipeline
314- def my_pipeline ():
315- body = basic_component (component_in_path = Input (path = "test_path1" ))
316-
317- parallel_for (
318- body = body ,
319- items = {
320- "iter1" : {"component_in_number" : 1 },
321- "iter2" : {"component_in_number" : 2 }
322- }
323- )
324-
325- with pytest .raises (UserErrorException ) as e :
326- my_pipeline ()
327- assert f"Referencing output with type { out_type } is not supported" in str (e .value )
0 commit comments