(directory)
| 432 | |
| 433 | |
| 434 | def 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 | |
| 450 | def test_pay_plugin(node_factory): |