Skip to content

Commit b63b472

Browse files
committed
ENH(TST): test that all cmdline utilities provide --help
1 parent c81afe6 commit b63b472

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nibabel/tests/test_scripts.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@ def test_nib_ls_multiple():
128128
)
129129

130130

131+
@script_test
132+
def test_help():
133+
for cmd in ['parrec2nii', 'nib-dicomfs', 'nib-ls', 'nib-nifti-dx']:
134+
code, stdout, stderr = run_command([cmd, '--help'])
135+
assert_equal(code, 0)
136+
assert_re_in(".*%s" % cmd, stdout)
137+
assert_re_in(".*Usage", stdout)
138+
assert_equal(stderr, '')
139+
131140

132141
@script_test
133142
def test_nib_nifti_dx():

0 commit comments

Comments
 (0)