@@ -155,7 +155,7 @@ def test_pipeline_with_int_param(self):
155155 "required" : True ,
156156 "directory" : None ,
157157 "disables" : None ,
158- "disable_when " : True ,
158+ "disableWhen " : True ,
159159 }
160160 ],
161161 "timeout" : None ,
@@ -184,7 +184,7 @@ def test_pipeline_with_disables_param(self):
184184 pipeline = get_pipeline (tmpdirname )
185185 params = {p ["code" ]: p for p in pipeline .to_dict ()["parameters" ]}
186186 self .assertEqual (params ["run_report_only" ]["disables" ], ["data_input" ])
187- self .assertEqual (params ["run_report_only" ]["disable_when " ], True )
187+ self .assertEqual (params ["run_report_only" ]["disableWhen " ], True )
188188 self .assertIsNone (params ["data_input" ]["disables" ])
189189
190190 def test_pipeline_with_disable_when_false (self ):
@@ -208,7 +208,7 @@ def test_pipeline_with_disable_when_false(self):
208208 pipeline = get_pipeline (tmpdirname )
209209 params = {p ["code" ]: p for p in pipeline .to_dict ()["parameters" ]}
210210 self .assertEqual (params ["enable_advanced" ]["disables" ], ["tuning" ])
211- self .assertEqual (params ["enable_advanced" ]["disable_when " ], False )
211+ self .assertEqual (params ["enable_advanced" ]["disableWhen " ], False )
212212
213213 def test_pipeline_with_multiple_param (self ):
214214 """The file contains a @pipeline decorator and a @parameter decorator with multiple=True."""
@@ -248,7 +248,7 @@ def test_pipeline_with_multiple_param(self):
248248 "required" : True ,
249249 "directory" : None ,
250250 "disables" : None ,
251- "disable_when " : True ,
251+ "disableWhen " : True ,
252252 }
253253 ],
254254 "timeout" : None ,
@@ -295,7 +295,7 @@ def test_pipeline_with_dataset(self):
295295 "required" : False ,
296296 "directory" : None ,
297297 "disables" : None ,
298- "disable_when " : True ,
298+ "disableWhen " : True ,
299299 }
300300 ],
301301 "timeout" : None ,
@@ -341,7 +341,7 @@ def test_pipeline_with_choices(self):
341341 "required" : True ,
342342 "directory" : None ,
343343 "disables" : None ,
344- "disable_when " : True ,
344+ "disableWhen " : True ,
345345 }
346346 ],
347347 "timeout" : None ,
@@ -415,7 +415,7 @@ def test_pipeline_with_bool(self):
415415 "required" : True ,
416416 "directory" : None ,
417417 "disables" : None ,
418- "disable_when " : True ,
418+ "disableWhen " : True ,
419419 }
420420 ],
421421 "timeout" : None ,
@@ -462,7 +462,7 @@ def test_pipeline_with_multiple_parameters(self):
462462 "required" : True ,
463463 "directory" : None ,
464464 "disables" : None ,
465- "disable_when " : True ,
465+ "disableWhen " : True ,
466466 },
467467 {
468468 "choices" : ["a" , "b" ],
@@ -477,7 +477,7 @@ def test_pipeline_with_multiple_parameters(self):
477477 "required" : True ,
478478 "directory" : None ,
479479 "disables" : None ,
480- "disable_when " : True ,
480+ "disableWhen " : True ,
481481 },
482482 ],
483483 "timeout" : None ,
@@ -546,7 +546,7 @@ def test_pipeline_with_connection_parameter_for_dhis2(self):
546546 "required" : True ,
547547 "directory" : None ,
548548 "disables" : None ,
549- "disable_when " : True ,
549+ "disableWhen " : True ,
550550 },
551551 {
552552 "code" : "data_element_ids" ,
@@ -561,7 +561,7 @@ def test_pipeline_with_connection_parameter_for_dhis2(self):
561561 "required" : True ,
562562 "directory" : None ,
563563 "disables" : None ,
564- "disable_when " : True ,
564+ "disableWhen " : True ,
565565 },
566566 ],
567567 "timeout" : None ,
@@ -612,7 +612,7 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
612612 "required" : True ,
613613 "directory" : None ,
614614 "disables" : None ,
615- "disable_when " : True ,
615+ "disableWhen " : True ,
616616 },
617617 {
618618 "code" : "org_units" ,
@@ -627,7 +627,7 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
627627 "required" : True ,
628628 "directory" : None ,
629629 "disables" : None ,
630- "disable_when " : True ,
630+ "disableWhen " : True ,
631631 },
632632 {
633633 "code" : "projects" ,
@@ -642,7 +642,7 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
642642 "required" : True ,
643643 "directory" : None ,
644644 "disables" : None ,
645- "disable_when " : True ,
645+ "disableWhen " : True ,
646646 },
647647 {
648648 "code" : "forms" ,
@@ -657,7 +657,7 @@ def test_pipeline_with_connection_parameter_for_iaso(self):
657657 "required" : True ,
658658 "directory" : None ,
659659 "disables" : None ,
660- "disable_when " : True ,
660+ "disableWhen " : True ,
661661 },
662662 ],
663663 "timeout" : None ,
0 commit comments