mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 09:04:22 +01:00
configure: (mostly) revert b7a56f0531
Plugins are a first-class citizen again. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
from collections import OrderedDict
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from lightning import RpcError
|
||||
from utils import PLUGINS
|
||||
|
||||
import pytest
|
||||
import subprocess
|
||||
import unittest
|
||||
|
||||
|
||||
@unittest.skipIf(not PLUGINS, "plugin subsystem requires PLUGINS flag")
|
||||
def test_option_passthrough(node_factory):
|
||||
""" Ensure that registering options works.
|
||||
|
||||
@@ -35,7 +32,6 @@ def test_option_passthrough(node_factory):
|
||||
n.stop()
|
||||
|
||||
|
||||
@unittest.skipIf(not PLUGINS, "plugin subsystem requires PLUGINS flag")
|
||||
def test_rpc_passthrough(node_factory):
|
||||
"""Starting with a plugin exposes its RPC methods.
|
||||
|
||||
@@ -62,14 +58,12 @@ def test_rpc_passthrough(node_factory):
|
||||
n.rpc.fail()
|
||||
|
||||
|
||||
@unittest.skipIf(not PLUGINS, "plugin subsystem requires PLUGINS flag")
|
||||
def test_plugin_dir(node_factory):
|
||||
"""--plugin-dir works"""
|
||||
plugin_dir = 'contrib/plugins'
|
||||
node_factory.get_node(options={'plugin-dir': plugin_dir, 'greeting': 'Mars'})
|
||||
|
||||
|
||||
@unittest.skipIf(not PLUGINS, "plugin subsystem requires PLUGINS flag")
|
||||
def test_plugin_disable(node_factory):
|
||||
"""--disable-plugin works"""
|
||||
plugin_dir = 'contrib/plugins'
|
||||
@@ -89,7 +83,6 @@ def test_plugin_disable(node_factory):
|
||||
n.rpc.hello(name='Sun')
|
||||
|
||||
|
||||
@unittest.skipIf(not PLUGINS, "plugin subsystem requires PLUGINS flag")
|
||||
def test_plugin_notifications(node_factory):
|
||||
l1, l2 = node_factory.get_nodes(2, opts={'plugin': 'contrib/plugins/helloworld.py'})
|
||||
|
||||
@@ -102,7 +95,6 @@ def test_plugin_notifications(node_factory):
|
||||
l2.daemon.wait_for_log(r'Received disconnect event')
|
||||
|
||||
|
||||
@unittest.skipIf(not PLUGINS, "plugin subsystem requires PLUGINS flag")
|
||||
def test_failing_plugins():
|
||||
fail_plugins = [
|
||||
'contrib/plugins/fail/failtimeout.py',
|
||||
|
||||
Reference in New Issue
Block a user