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

@@ -112,6 +112,6 @@ def test_should_sign_in_when_password_reset_is_successful_for_email_auth(
# the log-in flow makes a couple of calls
mock_get_user.assert_called_once_with(user['id'])
mock_update_user_password.assert_called_once_with(user['id'], 'a-new_password', from_email=True)
mock_update_user_password.assert_called_once_with(user['id'], 'a-new_password', validated_email_access=True)
assert not mock_send_verify_code.called