@@ -496,11 +496,11 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
496496 "from openhexa.sdk.pipelines.widgets import IASOWidget" ,
497497 "" ,
498498 "@parameter('iaso_con', name='IASO Connection', type=IASOConnection, required=True)" ,
499- "@parameter('org_units', name='OrgUnits', type=str , widget=IASOWidget.IASO_ORG_UNITS, connection='iaso_con', required=True)" ,
500- "@parameter('projects', name='Projects', type=str , widget=IASOWidget.PROJECTS , connection='iaso_con', required=True)" ,
501- "@parameter('forms', name='Forms', type=str , widget=IASOWidget.FORMS , connection='iaso_con', required=True)" ,
499+ "@parameter('org_units', name='OrgUnits', type=int , widget=IASOWidget.IASO_ORG_UNITS, connection='iaso_con', required=True)" ,
500+ "@parameter('projects', name='Projects', type=int , widget=IASOWidget.IASO_PROJECTS , connection='iaso_con', required=True)" ,
501+ "@parameter('forms', name='Forms', type=int , widget=IASOWidget.IASO_FORMS , connection='iaso_con', required=True)" ,
502502 "@pipeline('Test pipeline')" ,
503- "def test_pipeline():" ,
503+ "def test_pipeline(org_units, forms, projects ):" ,
504504 " pass" ,
505505 "" ,
506506 ]
@@ -529,7 +529,7 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
529529 },
530530 {
531531 "code" : "org_units" ,
532- "type" : "str " ,
532+ "type" : "int " ,
533533 "name" : "OrgUnits" ,
534534 "widget" : IASOWidget .IASO_ORG_UNITS .value ,
535535 "connection" : "iaso_con" ,
@@ -541,9 +541,9 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
541541 },
542542 {
543543 "code" : "projects" ,
544- "type" : "str " ,
544+ "type" : "int " ,
545545 "name" : "Projects" ,
546- "widget" : IASOWidget .PROJECTS .value ,
546+ "widget" : IASOWidget .IASO_PROJECTS .value ,
547547 "connection" : "iaso_con" ,
548548 "default" : None ,
549549 "multiple" : False ,
@@ -553,9 +553,9 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
553553 },
554554 {
555555 "code" : "forms" ,
556- "type" : "str " ,
556+ "type" : "int " ,
557557 "name" : "Forms" ,
558- "widget" : IASOWidget .FORMS .value ,
558+ "widget" : IASOWidget .IASO_FORMS .value ,
559559 "connection" : "iaso_con" ,
560560 "default" : None ,
561561 "multiple" : False ,
0 commit comments