Skip to content

Commit f58135f

Browse files
pytest: add reckless available test
1 parent abbb994 commit f58135f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_reckless.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,15 @@ def test_reckless_uv_install(node_factory):
390390

391391
assert r.search_stdout('using installer pythonuv')
392392
r.check_stderr()
393+
394+
395+
def test_reckless_available(node_factory):
396+
"""list available plugins"""
397+
n = get_reckless_node(node_factory)
398+
r = reckless([f"--network={NETWORK}", "listavailable", "-v", "--json"], dir=n.lightning_dir)
399+
assert r.returncode == 0
400+
# All plugins in the default repo should be found and identified as installable.
401+
assert r.search_stdout('testplugfail')
402+
assert r.search_stdout('testplugpass')
403+
assert r.search_stdout('testplugpyproj')
404+
assert r.search_stdout('testpluguv')

0 commit comments

Comments
 (0)