mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-17 11:27:27 +08:00
update to make test run red
This commit is contained in:
@@ -315,10 +315,10 @@ def get_token_status(token, serializer, max_age=None):
|
||||
expired = True
|
||||
except BadSignature:
|
||||
invalid = True
|
||||
except TypeError:
|
||||
invalid = True
|
||||
except ValueError:
|
||||
invalid = True
|
||||
# except TypeError:
|
||||
# invalid = True
|
||||
# except ValueError:
|
||||
# invalid = True
|
||||
|
||||
if data:
|
||||
user = _datastore.find_user(id=data[0])
|
||||
|
||||
@@ -432,7 +432,8 @@ class RecoverableTests(SecurityTest):
|
||||
'password_confirm': 'newpassword'
|
||||
}, follow_redirects=True)
|
||||
|
||||
self.assertIn(self.get_message('INVALID_RESET_PASSWORD_TOKEN'), r.data)
|
||||
m = self.get_message('INVALID_RESET_PASSWORD_TOKEN')
|
||||
self.assertIn(m.encode('utf-8'), r.data)
|
||||
|
||||
|
||||
class ExpiredResetPasswordTest(SecurityTest):
|
||||
|
||||
Reference in New Issue
Block a user