# HG changeset patch # User Thomas De Schampheleire # Date 2018-05-20 21:50:11 # Node ID 61f8ce5fff25652626d22907b89589815c20848c # Parent 4c4e1ec26e959e64d5747d0fcd7c4dc93b5c1320 admin: hooks: check session flashes in tests Add checking of the session flash when a new hook is added. 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 @@ -40,6 +40,7 @@ class TestAdminSettingsController(TestCo 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 @@ class TestAdminSettingsController(TestCo 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)