tests/test_plugin.py: Add test for --important-plugin.

This commit is contained in:
ZmnSCPxj jxPCSnmZ
2020-07-30 13:40:29 +08:00
committed by neil saitug
parent a847487bbe
commit 48f36904c8
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
from pyln.client import Plugin
import os
plugin = Plugin()
@plugin.method("die")
def die():
os._exit(1)
plugin.run()