@@ -419,6 +419,7 @@ def test_task_inputs_mandatory_with_xOR_one_mandatory_is_OK():
419
419
task .inputs .input_2 = attr .NOTHING
420
420
task .inputs .check_fields_input_spec ()
421
421
422
+
422
423
def test_task_inputs_mandatory_with_xOR_one_mandatory_out_3_is_OK ():
423
424
"""input spec with mandatory inputs"""
424
425
task = SimpleTask ()
@@ -427,6 +428,7 @@ def test_task_inputs_mandatory_with_xOR_one_mandatory_out_3_is_OK():
427
428
task .inputs .input_3 = True
428
429
task .inputs .check_fields_input_spec ()
429
430
431
+
430
432
def test_task_inputs_mandatory_with_xOR_zero_mandatory_raises_error ():
431
433
"""input spec with mandatory inputs"""
432
434
task = SimpleTask ()
@@ -449,6 +451,7 @@ def test_task_inputs_mandatory_with_xOR_two_mandatories_raises_error():
449
451
assert "input_2 is mutually exclusive with ('input_1', 'input_2'" in str (excinfo .value )
450
452
assert excinfo .type is AttributeError
451
453
454
+
452
455
def test_task_inputs_mandatory_with_xOR_3_mandatories_raises_error ():
453
456
"""input spec with mandatory inputs"""
454
457
task = SimpleTask ()
@@ -459,4 +462,4 @@ def test_task_inputs_mandatory_with_xOR_3_mandatories_raises_error():
459
462
with pytest .raises (Exception ) as excinfo :
460
463
task .inputs .check_fields_input_spec ()
461
464
assert "input_2 is mutually exclusive with ('input_1', 'input_2', 'input_3'" in str (excinfo .value )
462
- assert excinfo .type is AttributeError
465
+ assert excinfo .type is AttributeError
0 commit comments