pyln: Migrate remaining uses of the deprecated pylightning module

`pylightning` is not much more than an alias for `pyln-client`, so this
removes the need to install that as well just to run the tests.
This commit is contained in:
Christian Decker 2020-02-11 23:04:21 +01:00 committed by Rusty Russell
parent c236bf0fbd
commit 3e3b05e1b2
24 changed files with 24 additions and 24 deletions

View File

@ -272,7 +272,7 @@ ifeq ($(PYTEST),)
exit 1
else
# Explicitly hand DEVELOPER and VALGRIND so you can override on make cmd line.
PYTHONPATH=`pwd`/contrib/pyln-client:`pwd`/contrib/pyln-testing:`pwd`/contrib/pylightning:`pwd`/contrib/pyln-proto/:$(PYTHONPATH) TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) VALGRIND=$(VALGRIND) $(PYTEST) tests/ $(PYTEST_OPTS)
PYTHONPATH=`pwd`/contrib/pyln-client:`pwd`/contrib/pyln-testing:`pwd`/contrib/pyln-proto/:$(PYTHONPATH) TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) VALGRIND=$(VALGRIND) $(PYTEST) tests/ $(PYTEST_OPTS)
endif
# Keep includes in alpha order.

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
from lightning import Plugin
from pyln.client import Plugin
import time
plugin = Plugin()

View File

@ -9,7 +9,7 @@
- otherwise: we don't include the close_to
"""
from lightning import Plugin, Millisatoshi
from pyln.client import Plugin, Millisatoshi
plugin = Plugin()

View File

@ -6,7 +6,7 @@ stashed away, and are only resolved on the fifth invocation. All calls
will then return the argument of the fifth call.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -3,7 +3,7 @@
misbehaving plugin via RPC.
"""
from lightning import Plugin
from pyln.client import Plugin
import an_unexistent_module_that_will_make_me_crash
plugin = Plugin(dynamic=False)

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""This plugin is used to check that db_write calls are working correctly.
"""
from lightning import Plugin, RpcError
from pyln.client import Plugin, RpcError
import sqlite3
plugin = Plugin()

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""This plugin is used to check that forward_event calls are working correctly.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -7,7 +7,7 @@ settled/forwarded/
"""
from lightning import Plugin
from pyln.client import Plugin
import json
import os
import tempfile

View File

@ -2,7 +2,7 @@
"""Simple plugin to allow testing while closing of HTLC is delayed.
"""
from lightning import Plugin
from pyln.client import Plugin
import time
plugin = Plugin()

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
from lightning import Plugin, Millisatoshi
from pyln.client import Plugin, Millisatoshi
plugin = Plugin(autopatch=True)

View File

@ -4,7 +4,7 @@
Only used for 'channel_opened' for now.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -3,7 +3,7 @@
The plugin offers 3 options, one of each supported type.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""This plugin is used to check that warning(unusual/broken level log) calls are working correctly.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -5,7 +5,7 @@ We use this to check whether they're TLV or not
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -7,7 +7,7 @@ continue.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -4,7 +4,7 @@
We just refuse to let them open channels with an odd amount of millisatoshis.
"""
from lightning import Plugin, Millisatoshi
from pyln.client import Plugin, Millisatoshi
plugin = Plugin()

View File

@ -4,7 +4,7 @@
We just refuse to let them pay invoices with preimages divisible by 16.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -2,7 +2,7 @@
"""
This plugin is used to test the `rpc_command` hook.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""This plugin is used to check that sendpay_success and sendpay_failure calls are working correctly.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
from lightning import Plugin
from pyln.client import Plugin
import time
plugin = Plugin()

View File

@ -5,7 +5,7 @@ A plugin started with dynamic to False cannot be controlled after lightningd
has been started.
"""
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin(dynamic=False)

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
from lightning import Plugin
from pyln.client import Plugin
plugin = Plugin()