Mercurial > kallithea
changeset 7281:cefc3010baaf
admin: hooks: add test for editing a custom hook
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Sun, 20 May 2018 22:13:05 +0200 |
parents | dd9cb0a5aba3 |
children | d612fd653562 |
files | kallithea/tests/functional/test_admin_settings.py |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/functional/test_admin_settings.py Sun May 20 22:07:36 2018 +0200 +++ b/kallithea/tests/functional/test_admin_settings.py Sun May 20 22:13:05 2018 +0200 @@ -45,6 +45,17 @@ 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'),