changeset 8373:9bf701b246ba stable

tests: fix test_admin_settings test dependencies Failure could be reproduced with py.test kallithea/tests/functional/test_admin_settings.py -k x
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 24 Apr 2020 12:14:28 +0200
parents a9e71e61cedf
children 4a4e4a498518
files kallithea/tests/functional/test_admin_settings.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/functional/test_admin_settings.py	Wed Apr 29 15:00:59 2020 +0200
+++ b/kallithea/tests/functional/test_admin_settings.py	Fri Apr 24 12:14:28 2020 +0200
@@ -46,8 +46,7 @@
         response.mustcontain('test_hooks_1')
         response.mustcontain('cd %s' % base.TESTS_TMP_PATH)
 
-    def test_edit_custom_hook(self):
-        self.log_user()
+        # test_edit_custom_hook
         response = self.app.post(base.url('admin_settings_hooks'),
                                 params=dict(hook_ui_key='test_hooks_1',
                                             hook_ui_value='old_value_of_hook_1',
@@ -58,8 +57,7 @@
         response.mustcontain('test_hooks_1')
         response.mustcontain('new_value_of_hook_1')
 
-    def test_add_existing_custom_hook(self):
-        self.log_user()
+        # test_add_existing_custom_hook
         response = self.app.post(base.url('admin_settings_hooks'),
                                 params=dict(new_hook_ui_key='test_hooks_1',
                                             new_hook_ui_value='attempted_new_value',