mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pytest: add reckless local install test
This commit is contained in:
parent
8704a4b499
commit
7915a9d678
1 changed files with 16 additions and 0 deletions
|
@ -159,6 +159,22 @@ def test_install(node_factory):
|
|||
assert os.path.exists(plugin_path)
|
||||
|
||||
|
||||
def test_local_dir_install(node_factory):
|
||||
"""Test search and install from local directory source."""
|
||||
n = get_reckless_node(node_factory)
|
||||
n.start()
|
||||
r = reckless([f"--network={NETWORK}", "-v", "source", "add",
|
||||
"tests/data/recklessrepo/lightningd/testplugpass"],
|
||||
dir=n.lightning_dir)
|
||||
assert r.returncode == 0
|
||||
r = reckless([f"--network={NETWORK}", "-v", "install", "testplugpass"], dir=n.lightning_dir)
|
||||
assert r.returncode == 0
|
||||
assert 'testplugpass enabled' in r.stdout
|
||||
plugin_path = Path(n.lightning_dir) / 'reckless/testplugpass'
|
||||
print(plugin_path)
|
||||
assert os.path.exists(plugin_path)
|
||||
|
||||
|
||||
def test_disable_enable(node_factory):
|
||||
"""test search, git clone, and installation to folder."""
|
||||
n = get_reckless_node(node_factory)
|
||||
|
|
Loading…
Add table
Reference in a new issue