mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 10:19:48 -04:00
rename two_factor to two_factor_sms
it's a bit confusing now that there are three endpoints. the other two are already renamed two_factor_email and two_factor_webauthn
This commit is contained in:
@@ -130,7 +130,9 @@ def test_process_sms_auth_sign_in_return_2fa_template(
|
||||
'email_address': email_address,
|
||||
'password': password})
|
||||
assert response.status_code == 302
|
||||
assert response.location == url_for('.two_factor', next=redirect_url, _external=True)
|
||||
# TODO: remove this assert once we start defaulting to returning two_factor_sms first
|
||||
assert '/two-factor-sms' not in response.location
|
||||
assert response.location == url_for('.two_factor_sms', next=redirect_url, _external=True)
|
||||
mock_verify_password.assert_called_with(api_user_active['id'], password)
|
||||
mock_get_user_by_email.assert_called_with('valid@example.gov.uk')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user