From 83c4b940a65e3c03f108a54fabf20657d92e5007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 16 Feb 2025 00:08:30 +0100 Subject: [PATCH] tests: fix long lines in Python test script --- tests/scripts/python/testapi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py index e86b0ff0e..c241a5225 100644 --- a/tests/scripts/python/testapi.py +++ b/tests/scripts/python/testapi.py @@ -636,11 +636,13 @@ def test_hooks(): 'command_cb', 'command_data') weechat.command('', '/input insert /cmd1' + '{SCRIPT_NAME}' + ' w') weechat.command('', '/input complete_next') - check(weechat.buffer_get_string(buffer, 'input') == '/cmd1' + '{SCRIPT_NAME}' + ' word_completed') + buffer_input = weechat.buffer_get_string(buffer, 'input') + check(buffer_input == '/cmd1' + '{SCRIPT_NAME}' + ' word_completed') weechat.command('', '/input delete_line') weechat.command('', '/input insert /cmd2' + '{SCRIPT_NAME}' + ' w') weechat.command('', '/input complete_next') - check(weechat.buffer_get_string(buffer, 'input') == '/cmd2' + '{SCRIPT_NAME}' + ' word_completed ') + buffer_input = weechat.buffer_get_string(buffer, 'input') + check(buffer_input == '/cmd2' + '{SCRIPT_NAME}' + ' word_completed ') # hook_command_run hook_cmd_run = weechat.hook_command_run('/cmd2' + '{SCRIPT_NAME}' + '*', 'command_run_cb', 'command_run_data')