# HG changeset patch # User Thomas De Schampheleire # Date 2018-05-20 22:13:05 # Node ID cefc3010baaf2afddcf8ca40fe5c07492e458404 # Parent dd9cb0a5aba34122fc14531f69a6dde61fcac09b admin: hooks: add test for editing a custom hook diff --git a/kallithea/tests/functional/test_admin_settings.py b/kallithea/tests/functional/test_admin_settings.py --- a/kallithea/tests/functional/test_admin_settings.py +++ b/kallithea/tests/functional/test_admin_settings.py @@ -45,6 +45,17 @@ class TestAdminSettingsController(TestCo response.mustcontain('test_hooks_1') response.mustcontain('cd %s' % TESTS_TMP_PATH) + def test_edit_custom_hook(self): + self.log_user() + response = self.app.post(url('admin_settings_hooks'), + params=dict(hook_ui_key='test_hooks_1', + hook_ui_value_new='new_value_of_hook_1', + _authentication_token=self.authentication_token())) + + response = response.follow() + response.mustcontain('test_hooks_1') + response.mustcontain('new_value_of_hook_1') + def test_create_custom_hook_delete(self): self.log_user() response = self.app.post(url('admin_settings_hooks'),