Skip to content

Commit e79a275

Browse files
m-schmoockrustyrussell
authored andcommitted
pytest: fix a test that broke because of docstring usage
1 parent 5fe0c1c commit e79a275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def test_rpc_passthrough(node_factory):
196196
assert(len(cmd) == 1)
197197

198198
# Make sure usage message is present.
199-
assert only_one(n.rpc.help('hello')['help'])['command'] == 'hello [name]'
199+
assert only_one(n.rpc.help('hello')['help'])['command'].startswith('hello [name]')
200200
# While we're at it, let's check that helloworld.py is logging
201201
# correctly via the notifications plugin->lightningd
202202
assert n.daemon.is_in_log('Plugin helloworld.py initialized')

0 commit comments

Comments
 (0)