Show More
@@ -71,7 +71,7 b' class AdminSessionSettingsView(AdminSett' | |||
|
71 | 71 | @view_config( |
|
72 | 72 | route_name='admin_settings_sessions_cleanup', request_method='POST') |
|
73 | 73 | def settings_sessions_cleanup(self): |
|
74 | ||
|
74 | _ = self.request.translate | |
|
75 | 75 | expire_days = safe_int(self.request.params.get('expire_days')) |
|
76 | 76 | |
|
77 | 77 | if expire_days is None: |
@@ -473,7 +473,7 b' class TestUserSessions(object):' | |||
|
473 | 473 | response = self.app.post( |
|
474 | 474 | self._get_url('admin_settings_sessions_cleanup'), params=post_data, |
|
475 | 475 | status=302) |
|
476 |
assert_session_flash(response, ' |
|
|
476 | assert_session_flash(response, 'Cleaned up old sessions') | |
|
477 | 477 | |
|
478 | 478 | |
|
479 | 479 | @pytest.mark.usefixtures('app') |
General Comments 0
You need to be logged in to leave comments.
Login now