summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/python/testapi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py
index 1cf8238ca..72c86c316 100644
--- a/tests/scripts/python/testapi.py
+++ b/tests/scripts/python/testapi.py
@@ -151,6 +151,11 @@ def config_reload_cb(data, config_file):
return weechat.WEECHAT_RC_OK
+def config_update_cb(data, config_file, version, data_read):
+ """Config update callback."""
+ return weechat.WEECHAT_RC_OK
+
+
def section_read_cb(data, config_file, section, option_name, value):
"""Section read callback."""
return weechat.WEECHAT_RC_OK
@@ -199,6 +204,9 @@ def test_config():
'config_reload_cb', 'config_reload_data',
)
check(ptr_config != '')
+ # set version
+ weechat.config_set_version(ptr_config, 2,
+ 'config_update_cb', 'config_update_data')
# section
ptr_section = weechat.config_new_section(
ptr_config, 'section1', 0, 0,