user-sessions: fixed tests and translation mechanism for user sessions.
This commit is contained in:
parent
41e7391c22
commit
452fb50caf
2 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ class AdminSessionSettingsView(AdminSettingsView):
|
|||
@view_config(
|
||||
route_name='admin_settings_sessions_cleanup', request_method='POST')
|
||||
def settings_sessions_cleanup(self):
|
||||
|
||||
_ = self.request.translate
|
||||
expire_days = safe_int(self.request.params.get('expire_days'))
|
||||
|
||||
if expire_days is None:
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@ class TestUserSessions(object):
|
|||
response = self.app.post(
|
||||
self._get_url('admin_settings_sessions_cleanup'), params=post_data,
|
||||
status=302)
|
||||
assert_session_flash(response, 'Please execute this command')
|
||||
assert_session_flash(response, 'Cleaned up old sessions')
|
||||
|
||||
|
||||
@pytest.mark.usefixtures('app')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue