mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
All tests passing and merged with master.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
from flask import url_for
|
||||
from app.main.dao import users_dao
|
||||
from tests import create_test_user
|
||||
|
||||
|
||||
def test_should_render_forgot_password(app_):
|
||||
@@ -12,10 +10,10 @@ def test_should_render_forgot_password(app_):
|
||||
|
||||
|
||||
def test_should_redirect_to_password_reset_sent_and_state_updated(app_,
|
||||
mock_send_email,
|
||||
api_user_active,
|
||||
mock_user_dao_get_by_email,
|
||||
mock_user_dao_password_reset):
|
||||
mock_get_user_by_email,
|
||||
mock_update_user,
|
||||
mock_send_email):
|
||||
with app_.test_request_context():
|
||||
response = app_.test_client().post(
|
||||
url_for('.forgot_password'),
|
||||
@@ -24,4 +22,3 @@ def test_should_redirect_to_password_reset_sent_and_state_updated(app_,
|
||||
assert (
|
||||
'You have been sent an email containing a link'
|
||||
' to reset your password.') in response.get_data(as_text=True)
|
||||
assert api_user_active.state == 'request_password_reset'
|
||||
|
||||
Reference in New Issue
Block a user