MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_basic_help

Function test_basic_help

tests/test_reckless.py:164–170  ·  view source on GitHub ↗

Validate that argparse provides basic help info. This requires no config options passed to reckless.

()

Source from the content-addressed store, hash-verified

162
163
164def test_basic_help():
165 '''Validate that argparse provides basic help info.
166 This requires no config options passed to reckless.'''
167 r = reckless(["-h"])
168 assert r.returncode == 0
169 assert r.search_stdout("positional arguments:")
170 assert r.search_stdout("options:") or r.search_stdout("optional arguments:")
171
172
173def test_contextual_help(node_factory):

Callers

nothing calls this directly

Calls 2

search_stdoutMethod · 0.80
recklessFunction · 0.70

Tested by

no test coverage detected