Skip to content

Commit a626fe4

Browse files
committed
test help-all output
1 parent cf4dd12 commit a626fe4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

ipyparallel/tests/test_apps.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
def _get_output(cmd):
21-
out = check_output([sys.executable, '-m', 'ipyparallel.cluster', '--version'])
21+
out = check_output(cmd)
2222
if isinstance(out, bytes):
2323
out = out.decode('utf8', 'replace')
2424
return out
@@ -32,6 +32,18 @@ def test_version():
3232
assert out.strip() == ipyparallel.__version__
3333

3434

35+
@pytest.mark.parametrize(
36+
"submod",
37+
[
38+
"cluster",
39+
"engine",
40+
"controller",
41+
],
42+
)
43+
def test_help_all(submod):
44+
out = _get_output([sys.executable, '-m', 'ipyparallel.%s' % submod, '--help-all'])
45+
46+
3547
def bind_kernel(engineapp):
3648
app = MagicMock(spec=kernelapp.IPKernelApp)
3749
with patch.object(ipengineapp, 'IPKernelApp', autospec=True) as MockKernelApp:

0 commit comments

Comments
 (0)