Fix reset password flow

It was broken because of mismatch in update password argument
This commit is contained in:
Pea Tyczynska
2020-02-18 14:28:03 +00:00
parent 583213c29f
commit 3a93fe6892
6 changed files with 11 additions and 9 deletions

View File

@@ -191,7 +191,9 @@ def test_two_factor_should_set_password_when_new_password_exists_in_session(
assert response.status_code == 302
assert response.location == url_for('main.show_accounts_or_dashboard', _external=True)
mock_update_user_password.assert_called_once_with(api_user_active['id'], 'changedpassword', from_email=True)
mock_update_user_password.assert_called_once_with(
api_user_active['id'], 'changedpassword', validated_email_access=True
)
def test_two_factor_returns_error_when_user_is_locked(