pytest: add notifications to tests.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-10-12 16:03:50 +10:30
parent 41290a436f
commit 44f6b8a746
4 changed files with 101 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ static struct command_result *json_helloworld(struct command *cmd,
NULL))
return command_param_failed();
plugin_notify_message(cmd, LOG_INFORM, "Notification from %s", "json_helloworld");
if (!name)
name = name_option ? name_option : tal_strdup(tmpctx, "world");