Skip to content

Commit e412f10

Browse files
committed
Change test input type
1 parent 63399a9 commit e412f10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydra/engine/tests/test_specs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class SimpleTask(ShellCommandTask):
376376
input_fields=[
377377
(
378378
"input_1",
379-
bool,
379+
str,
380380
{
381381
"help_string": "help",
382382
"mandatory": True,
@@ -403,10 +403,10 @@ class SimpleTask(ShellCommandTask):
403403
executable = "cmd"
404404

405405

406-
def test_task_inputs_mandatory_with_xOR_one_mandatory_is_enough():
406+
def test_task_inputs_mandatory_with_xOR_one_mandatory_is_OK():
407407
"""input spec with mandatory inputs"""
408408
task = SimpleTask()
409-
task.inputs.input_1 = True
409+
task.inputs.input_1 = 'Input1'
410410
task.inputs.input_2 = attr.NOTHING
411411
task.inputs.check_fields_input_spec()
412412

@@ -421,7 +421,7 @@ def test_task_inputs_mandatory_with_xOR_zero_mandatory_raises_error():
421421
def test_task_inputs_mandatory_with_xOR_two_mandatories_raises_error():
422422
"""input spec with mandatory inputs"""
423423
task = SimpleTask()
424-
task.inputs.input_1 = True
424+
task.inputs.input_1 = 'Input1'
425425
task.inputs.input_2 = True
426426

427427
with pytest.raises(Exception) as excinfo:

0 commit comments

Comments
 (0)