From d7c9f08c2a8eb97a6c480c313d6cd7ab304647e7 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Fri, 20 Sep 2024 17:39:59 +0200 Subject: [PATCH] pytest: fix a test that broke because of docstring usage --- tests/test_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 4357f0eb0739..1247a73cf00e 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -196,7 +196,7 @@ def test_rpc_passthrough(node_factory): assert(len(cmd) == 1) # Make sure usage message is present. - assert only_one(n.rpc.help('hello')['help'])['command'] == 'hello [name]' + assert only_one(n.rpc.help('hello')['help'])['command'].startswith('hello [name]') # While we're at it, let's check that helloworld.py is logging # correctly via the notifications plugin->lightningd assert n.daemon.is_in_log('Plugin helloworld.py initialized')