1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

tests: fix long lines in Python test script

This commit is contained in:
Sébastien Helleu
2025-02-16 00:08:30 +01:00
parent 8c1379e820
commit 83c4b940a6
+4 -2
View File
@@ -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')