mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
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:
parent
c236bf0fbd
commit
3e3b05e1b2
2
Makefile
2
Makefile
@ -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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
import time
|
||||
|
||||
plugin = Plugin()
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
|
||||
plugin = Plugin()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -7,7 +7,7 @@ settled/forwarded/
|
||||
"""
|
||||
|
||||
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
import json
|
||||
import os
|
||||
import tempfile
|
||||
|
@ -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()
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
from lightning import Plugin, Millisatoshi
|
||||
from pyln.client import Plugin, Millisatoshi
|
||||
|
||||
|
||||
plugin = Plugin(autopatch=True)
|
||||
|
@ -4,7 +4,7 @@
|
||||
Only used for 'channel_opened' for now.
|
||||
"""
|
||||
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
|
||||
plugin = Plugin()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -7,7 +7,7 @@ continue.
|
||||
|
||||
"""
|
||||
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
|
||||
plugin = Plugin()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
|
||||
plugin = Plugin()
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
import time
|
||||
|
||||
plugin = Plugin()
|
||||
|
@ -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)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
from lightning import Plugin
|
||||
from pyln.client import Plugin
|
||||
|
||||
|
||||
plugin = Plugin()
|
||||
|
Loading…
Reference in New Issue
Block a user