Changeset - 4f80df0d45c8
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 13 years ago 2013-03-30 16:17:56
marcin@python-works.com
unified flash msg tests
3 files changed with 4 insertions and 8 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/functional/test_admin_repos.py
Show inline comments
 
@@ -251,8 +251,7 @@ class TestAdminReposController(TestContr
 

	
 
        response = self.app.delete(url('repo', repo_name=repo_name))
 

	
 
        self.assertTrue('''Deleted repository %s''' % (repo_name) in
 
                        response.session['flash'][0])
 
        self.checkSessionFlash(response, 'Deleted repository %s' % (repo_name))
 

	
 
        response.follow()
 

	
 
@@ -299,8 +298,7 @@ class TestAdminReposController(TestContr
 

	
 
        response = self.app.delete(url('repo', repo_name=repo_name))
 

	
 
        self.assertTrue('''Deleted repository %s''' % (repo_name) in
 
                        response.session['flash'][0])
 
        self.checkSessionFlash(response, 'Deleted repository %s' % (repo_name))
 

	
 
        response.follow()
 

	
rhodecode/tests/functional/test_admin_settings.py
Show inline comments
 
@@ -85,8 +85,7 @@ class TestAdminSettingsController(TestCo
 
                                                 rhodecode_ga_code=new_ga_code
 
                                                 ))
 

	
 
        self.assertTrue('Updated application settings' in
 
                        response.session['flash'][0][1])
 
        self.checkSessionFlash(response, 'Updated application settings')
 
        self.assertEqual(RhodeCodeSetting
 
                        .get_app_settings()['rhodecode_ga_code'], new_ga_code)
 

	
rhodecode/tests/functional/test_admin_users.py
Show inline comments
 
@@ -150,8 +150,7 @@ class TestAdminUsersController(TestContr
 
            .filter(User.username == username).one()
 
        response = self.app.delete(url('user', id=new_user.user_id))
 

	
 
        self.assertTrue("""Successfully deleted user""" in
 
                        response.session['flash'][0])
 
        self.checkSessionFlash(response, 'Successfully deleted user')
 

	
 
    def test_delete_browser_fakeout(self):
 
        response = self.app.post(url('user', id=1),
0 comments (0 inline, 0 general)