mirror of
https://github.com/lightningd/plugins.git
synced 2026-08-20 13:28:14 +02:00
monitor: add basic starting test
This commit is contained in:
parent
0185dbd9fd
commit
351c6cec2a
1 changed files with 16 additions and 0 deletions
16
monitor/test_monitor.py
Normal file
16
monitor/test_monitor.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import os
|
||||
from pyln.testing.fixtures import * # noqa: F401,F403
|
||||
|
||||
plugin_path = os.path.join(os.path.dirname(__file__), "monitor.py")
|
||||
|
||||
|
||||
def test_helpme_starts(node_factory):
|
||||
l1 = node_factory.get_node()
|
||||
# Test dynamically
|
||||
l1.rpc.plugin_start(plugin_path)
|
||||
l1.rpc.plugin_stop(plugin_path)
|
||||
l1.rpc.plugin_start(plugin_path)
|
||||
l1.stop()
|
||||
# Then statically
|
||||
l1.daemon.opts["plugin"] = plugin_path
|
||||
l1.start()
|
||||
Loading…
Add table
Add a link
Reference in a new issue