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

Function test_failing_plugins

tests/test_plugin.py:434–447  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

432
433
434def test_failing_plugins(directory):
435 fail_plugins = [
436 os.path.join(os.getcwd(), 'contrib/plugins/fail/failtimeout.py'),
437 os.path.join(os.getcwd(), 'contrib/plugins/fail/doesnotexist.py'),
438 ]
439
440 for p in fail_plugins:
441 with pytest.raises(subprocess.CalledProcessError):
442 subprocess.check_output([
443 'lightningd/lightningd',
444 '--lightning-dir={}'.format(directory),
445 '--plugin={}'.format(p),
446 '--help',
447 ])
448
449
450def test_pay_plugin(node_factory):

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected