mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
test_lightningd: Test missing arguments.
This commit is contained in:
@@ -3287,5 +3287,18 @@ class LightningDTests(BaseLightningDTests):
|
|||||||
j, _ = json.JSONDecoder().raw_decode(out)
|
j, _ = json.JSONDecoder().raw_decode(out)
|
||||||
assert 'help [command]' in j['verbose']
|
assert 'help [command]' in j['verbose']
|
||||||
|
|
||||||
|
# Test missing parameters.
|
||||||
|
try:
|
||||||
|
# This will error due to missing parameters.
|
||||||
|
# We want to check if lightningd will crash.
|
||||||
|
out = subprocess.check_output(['cli/lightning-cli',
|
||||||
|
'--lightning-dir={}'
|
||||||
|
.format(l1.daemon.lightning_dir),
|
||||||
|
'-J', '-o',
|
||||||
|
'sendpay']).decode('utf-8')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(verbosity=2)
|
unittest.main(verbosity=2)
|
||||||
|
|||||||
Reference in New Issue
Block a user