All tests passing and merged with master.

This commit is contained in:
Nicholas Staples
2016-01-27 16:30:33 +00:00
51 changed files with 763 additions and 892 deletions

View File

@@ -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'