mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-22 23:54:20 +01:00
prometheus: basic tests
This commit is contained in:
committed by
Christian Decker
parent
8f0b1a443c
commit
fc8ab0cd99
16
prometheus/test_prometheus.py
Normal file
16
prometheus/test_prometheus.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__), "prometheus.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()
|
||||||
Reference in New Issue
Block a user