From 9a9f95c6d14de8fe660e7652d811707056843bfc Mon Sep 17 00:00:00 2001 From: darosior Date: Mon, 16 Dec 2019 22:30:52 +0100 Subject: [PATCH] rebalance: add basic tests --- rebalance/test_rebalance.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 rebalance/test_rebalance.py diff --git a/rebalance/test_rebalance.py b/rebalance/test_rebalance.py new file mode 100644 index 0000000..e0e8331 --- /dev/null +++ b/rebalance/test_rebalance.py @@ -0,0 +1,16 @@ +import os +from pyln.testing.fixtures import * # noqa: F401,F403 + +plugin_path = os.path.join(os.path.dirname(__file__), "rebalance.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()