Show More
@@ -251,8 +251,7 b' class TestAdminReposController(TestContr' | |||||
251 |
|
251 | |||
252 | response = self.app.delete(url('repo', repo_name=repo_name)) |
|
252 | response = self.app.delete(url('repo', repo_name=repo_name)) | |
253 |
|
253 | |||
254 |
self. |
|
254 | self.checkSessionFlash(response, 'Deleted repository %s' % (repo_name)) | |
255 | response.session['flash'][0]) |
|
|||
256 |
|
255 | |||
257 | response.follow() |
|
256 | response.follow() | |
258 |
|
257 | |||
@@ -299,8 +298,7 b' class TestAdminReposController(TestContr' | |||||
299 |
|
298 | |||
300 | response = self.app.delete(url('repo', repo_name=repo_name)) |
|
299 | response = self.app.delete(url('repo', repo_name=repo_name)) | |
301 |
|
300 | |||
302 |
self. |
|
301 | self.checkSessionFlash(response, 'Deleted repository %s' % (repo_name)) | |
303 | response.session['flash'][0]) |
|
|||
304 |
|
302 | |||
305 | response.follow() |
|
303 | response.follow() | |
306 |
|
304 |
@@ -85,8 +85,7 b' class TestAdminSettingsController(TestCo' | |||||
85 | rhodecode_ga_code=new_ga_code |
|
85 | rhodecode_ga_code=new_ga_code | |
86 | )) |
|
86 | )) | |
87 |
|
87 | |||
88 |
self. |
|
88 | self.checkSessionFlash(response, 'Updated application settings') | |
89 | response.session['flash'][0][1]) |
|
|||
90 | self.assertEqual(RhodeCodeSetting |
|
89 | self.assertEqual(RhodeCodeSetting | |
91 | .get_app_settings()['rhodecode_ga_code'], new_ga_code) |
|
90 | .get_app_settings()['rhodecode_ga_code'], new_ga_code) | |
92 |
|
91 |
@@ -150,8 +150,7 b' class TestAdminUsersController(TestContr' | |||||
150 | .filter(User.username == username).one() |
|
150 | .filter(User.username == username).one() | |
151 | response = self.app.delete(url('user', id=new_user.user_id)) |
|
151 | response = self.app.delete(url('user', id=new_user.user_id)) | |
152 |
|
152 | |||
153 |
self. |
|
153 | self.checkSessionFlash(response, 'Successfully deleted user') | |
154 | response.session['flash'][0]) |
|
|||
155 |
|
154 | |||
156 | def test_delete_browser_fakeout(self): |
|
155 | def test_delete_browser_fakeout(self): | |
157 | response = self.app.post(url('user', id=1), |
|
156 | response = self.app.post(url('user', id=1), |
General Comments 0
You need to be logged in to leave comments.
Login now