summaryrefslogtreecommitdiff
path: root/tests/scripts/python
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2023-09-24 20:40:54 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-25 13:48:30 +0200
commit169eecb5cf10ae12c5ead7bf696914aafcd40cc4 (patch)
treed7d74915f673b303e638e9107a03e2cb6934f6e1 /tests/scripts/python
parentb433afbd26958e46e586fccde39b78fcc141e3e8 (diff)
downloadweechat-169eecb5cf10ae12c5ead7bf696914aafcd40cc4.zip
tests: use correct data type method in hdata tests
Diffstat (limited to 'tests/scripts/python')
-rw-r--r--tests/scripts/python/testapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py
index 972716a00..213857af8 100644
--- a/tests/scripts/python/testapi.py
+++ b/tests/scripts/python/testapi.py
@@ -624,7 +624,7 @@ def test_hdata():
# hdata_char
check(weechat.hdata_char(hdata_line_data, line1_data, 'displayed') == 1)
# hdata_integer
- check(weechat.hdata_char(hdata_buffer, buffer2, 'number') == 2)
+ check(weechat.hdata_integer(hdata_buffer, buffer2, 'number') == 2)
# hdata_long
weechat.buffer_set(buffer, 'hotlist', weechat.WEECHAT_HOTLIST_MESSAGE)
gui_hotlist = weechat.hdata_get_list(hdata_hotlist, 'gui_hotlist')