File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1485,7 +1485,7 @@ def _list_outputs(self):
1485
1485
1486
1486
1487
1487
class FSSourceInputSpec (BaseInterfaceInputSpec ):
1488
- subjects_dir = Directory (mandatory = True ,
1488
+ subjects_dir = Directory (exists = True , mandatory = True ,
1489
1489
desc = 'Freesurfer subjects directory.' )
1490
1490
subject_id = Str (mandatory = True ,
1491
1491
desc = 'Subject name for whom to retrieve data' )
Original file line number Diff line number Diff line change @@ -407,6 +407,13 @@ def test_freesurfersource():
407
407
assert fss .inputs .subjects_dir == Undefined
408
408
409
409
410
+ def test_freesurfersource_incorrectdir ():
411
+ fss = nio .FreeSurferSource ()
412
+ with pytest .raises (Exception ) as err :
413
+ fss .inputs .subjects_dir = 'path/to/no/existing/directory'
414
+ assert "TraitError" == err .typename
415
+
416
+
410
417
def test_jsonsink_input ():
411
418
412
419
ds = nio .JSONFileSink ()
You can’t perform that action at this time.
0 commit comments