If no arguments are provided, should display help and exit.
()
| 1375 | |
| 1376 | |
| 1377 | def 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 | |
| 1384 | def test_blockchaintrack(node_factory, bitcoind): |