File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ class SimpleTask(ShellCommandTask):
376
376
input_fields = [
377
377
(
378
378
"input_1" ,
379
- bool ,
379
+ str ,
380
380
{
381
381
"help_string" : "help" ,
382
382
"mandatory" : True ,
@@ -403,10 +403,10 @@ class SimpleTask(ShellCommandTask):
403
403
executable = "cmd"
404
404
405
405
406
- def test_task_inputs_mandatory_with_xOR_one_mandatory_is_enough ():
406
+ def test_task_inputs_mandatory_with_xOR_one_mandatory_is_OK ():
407
407
"""input spec with mandatory inputs"""
408
408
task = SimpleTask ()
409
- task .inputs .input_1 = True
409
+ task .inputs .input_1 = 'Input1'
410
410
task .inputs .input_2 = attr .NOTHING
411
411
task .inputs .check_fields_input_spec ()
412
412
@@ -421,7 +421,7 @@ def test_task_inputs_mandatory_with_xOR_zero_mandatory_raises_error():
421
421
def test_task_inputs_mandatory_with_xOR_two_mandatories_raises_error ():
422
422
"""input spec with mandatory inputs"""
423
423
task = SimpleTask ()
424
- task .inputs .input_1 = True
424
+ task .inputs .input_1 = 'Input1'
425
425
task .inputs .input_2 = True
426
426
427
427
with pytest .raises (Exception ) as excinfo :
You can’t perform that action at this time.
0 commit comments