diff --git a/pybossa/view/account.py b/pybossa/view/account.py index b6d64c32f8..a62a14f383 100644 --- a/pybossa/view/account.py +++ b/pybossa/view/account.py @@ -653,7 +653,7 @@ def forgot_password(): '/account/email/forgot_password.html', user=user, recovery_url=recovery_url) mail_queue.enqueue(send_mail, msg) - flash(gettext("We've send you an email with account " + flash(gettext("We've sent you an email with account " "recovery instructions!"), 'success') else: diff --git a/test/test_web.py b/test/test_web.py index f8f92c7d5e..d3c1dce683 100644 --- a/test/test_web.py +++ b/test/test_web.py @@ -3691,7 +3691,7 @@ def test_45_password_reset_link_json(self, signer, queue): assert 'To recover your password' in enqueue_call[0][1]['html'] err_msg = "There should be a flash message" assert resdata.get('flash'), err_msg - assert "send you an email" in resdata.get('flash'), err_msg + assert "sent you an email" in resdata.get('flash'), err_msg data = {'password': jane.passwd_hash, 'user': jane.name} csrf = self.get_csrf('/account/forgot-password') @@ -3709,7 +3709,7 @@ def test_45_password_reset_link_json(self, signer, queue): assert 'your Twitter account to ' in enqueue_call[0][1]['html'] err_msg = "There should be a flash message" assert resdata.get('flash'), err_msg - assert "send you an email" in resdata.get('flash'), err_msg + assert "sent you an email" in resdata.get('flash'), err_msg data = {'password': google.passwd_hash, 'user': google.name} csrf = self.get_csrf('/account/forgot-password') @@ -3727,7 +3727,7 @@ def test_45_password_reset_link_json(self, signer, queue): assert 'your Google account to ' in enqueue_call[0][1]['html'] err_msg = "There should be a flash message" assert resdata.get('flash'), err_msg - assert "send you an email" in resdata.get('flash'), err_msg + assert "sent you an email" in resdata.get('flash'), err_msg data = {'password': facebook.passwd_hash, 'user': facebook.name} csrf = self.get_csrf('/account/forgot-password') @@ -3743,7 +3743,7 @@ def test_45_password_reset_link_json(self, signer, queue): assert 'your Facebook account to ' in enqueue_call[0][1]['html'] err_msg = "There should be a flash message" assert resdata.get('flash'), err_msg - assert "send you an email" in resdata.get('flash'), err_msg + assert "sent you an email" in resdata.get('flash'), err_msg # Test with not valid form csrf = self.get_csrf('/account/forgot-password')