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

Function test_cli_no_argument

tests/test_misc.py:1377–1381  ·  view source on GitHub ↗

If no arguments are provided, should display help and exit.

()

Source from the content-addressed store, hash-verified

1375
1376
1377def test_cli_no_argument():
1378 """If no arguments are provided, should display help and exit."""
1379 out = subprocess.run(['cli/lightning-cli'], stdout=subprocess.PIPE)
1380 assert out.returncode in [0, 2] # returns 2 if lightning-rpc not available
1381 assert "Usage: cli/lightning-cli <command> [<params>...]" in out.stdout.decode()
1382
1383
1384def test_blockchaintrack(node_factory, bitcoind):

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected