changeset 7279:61f8ce5fff25

admin: hooks: check session flashes in tests Add checking of the session flash when a new hook is added.
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Sun, 20 May 2018 21:50:11 +0200
parents 4c4e1ec26e95
children dd9cb0a5aba3
files kallithea/tests/functional/test_admin_settings.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/functional/test_admin_settings.py	Wed May 16 21:19:56 2018 +0200
+++ b/kallithea/tests/functional/test_admin_settings.py	Sun May 20 21:50:11 2018 +0200
@@ -40,6 +40,7 @@
                                             new_hook_ui_value='cd %s' % TESTS_TMP_PATH,
                                             _authentication_token=self.authentication_token()))
 
+        self.checkSessionFlash(response, 'Added new hook')
         response = response.follow()
         response.mustcontain('test_hooks_1')
         response.mustcontain('cd %s' % TESTS_TMP_PATH)
@@ -51,6 +52,7 @@
                                             new_hook_ui_value='cd %s2' % TESTS_TMP_PATH,
                                             _authentication_token=self.authentication_token()))
 
+        self.checkSessionFlash(response, 'Added new hook')
         response = response.follow()
         response.mustcontain('test_hooks_2')
         response.mustcontain('cd %s2' % TESTS_TMP_PATH)