File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
nipype/interfaces/base/tests Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 12
12
from .... import config
13
13
from ....testing import example_data
14
14
from ... import base as nib
15
+ from ..support import _inputs_help
15
16
16
17
standard_library .install_aliases ()
17
18
@@ -42,14 +43,6 @@ def test_Interface():
42
43
assert nib .Interface .output_spec is None
43
44
with pytest .raises (NotImplementedError ):
44
45
nib .Interface ()
45
- with pytest .raises (NotImplementedError ):
46
- nib .Interface .help ()
47
- with pytest .raises (NotImplementedError ):
48
- nib .Interface ._inputs_help ()
49
- with pytest .raises (NotImplementedError ):
50
- nib .Interface ._outputs_help ()
51
- with pytest .raises (NotImplementedError ):
52
- nib .Interface ._outputs ()
53
46
54
47
class DerivedInterface (nib .Interface ):
55
48
def __init__ (self ):
@@ -88,7 +81,7 @@ class DerivedInterface(nib.BaseInterface):
88
81
resource_monitor = False
89
82
90
83
assert DerivedInterface .help () is None
91
- assert 'moo' in '' .join (DerivedInterface . _inputs_help ())
84
+ assert 'moo' in '' .join (_inputs_help (DerivedInterface ))
92
85
assert DerivedInterface ()._outputs () is None
93
86
assert DerivedInterface ._get_filecopy_info ()[0 ]['key' ] == 'woo'
94
87
assert DerivedInterface ._get_filecopy_info ()[0 ]['copy' ]
You can’t perform that action at this time.
0 commit comments