pytest: test for filtering bug.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-08-05 17:09:42 +09:30
parent 3191ff7e32
commit be2cbe784f
2 changed files with 24 additions and 0 deletions

13
tests/plugins/log.py Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
from pyln.client import Plugin
plugin = Plugin()
@plugin.init()
def init(options, configuration, plugin):
plugin.log("printing debug log", level='debug')
plugin.log("printing info log", level='info')
plugin.run()