tests: update cli tests to reflect bwatch rpcs
What changed, and why it matters
This commit only updates three test strings in a Python test file. It changes the expected help output from one RPC command name ('addpsbtinput') to another ('addoutpointwatch'). There is no code change, no bug fix, and no security relevance visible in the diff.
No security action needed. Treat as routine test maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies tests/test_misc.py, replacing the literal string ‘addgossip message\n\naddpsbtinput’ with ‘addgossip message\n\naddoutpointwatch’ in three CLI-related test cases. This is a test-maintenance change reflecting a renamed or replaced RPC in the ‘bwatch’ plugin/feature set. No implementation code is altered.
Changed components
tests/test_misc.pyInspect captured patch +3 / −3
diff --git a/tests/test_misc.py b/tests/test_misc.py
index c2768132..e226a37e 100644
--- a/tests/test_misc.py
+++ b/tests/test_misc.py
@@ -1029,7 +1029,7 @@ def test_cli(node_factory):
.format(l1.daemon.lightning_dir),
'help']).decode('utf-8')
# Test some known output.
- assert 'addgossip message\n\naddpsbtinput' in out
+ assert 'addgossip message\n\naddoutpointwatch' in out
# Check JSON id is as expected
l1.daemon.wait_for_log(r'jsonrpc#[0-9]*: "cli:help#[0-9]*"\[IN\]')
@@ -1255,7 +1255,7 @@ def test_cli_commando(node_factory):
.format(l1.daemon.lightning_dir),
'help']).decode('utf-8')
# Test some known output.
- assert 'addgossip message\n\naddpsbtinput' in out
+ assert 'addgossip message\n\naddoutpointwatch' in out
# Check JSON id is as expected
l1.daemon.wait_for_log(r'jsonrpc#[0-9]*: "cli:help#[0-9]*"\[IN\]')
@@ -1362,7 +1362,7 @@ def test_daemon_option(node_factory):
'--lightning-dir={}'
.format(l1.daemon.lightning_dir),
'help']).decode('utf-8')
- assert 'addgossip message\n\naddpsbtinput' in out
+ assert 'addgossip message\n\naddoutpointwatch' in out
subprocess.run(['cli/lightning-cli',
'--network={}'.format(TEST_NETWORK),
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.