Changeset - 61f8ce5fff25
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 7 years ago 2018-05-20 21:50:11
thomas.de_schampheleire@nokia.com
admin: hooks: check session flashes in tests

Add checking of the session flash when a new hook is added.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/functional/test_admin_settings.py
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)