mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
2767 passing
This commit is contained in:
@@ -104,7 +104,7 @@ def test_should_redirect_after_email_change(
|
||||
):
|
||||
client_request.post(
|
||||
'main.user_profile_email',
|
||||
_data={'email_address': 'new_notify@notify.gov.uk'},
|
||||
_data={'email_address': 'new_notify@notify.gsa.gov'},
|
||||
_expected_status=302,
|
||||
_expected_redirect=url_for(
|
||||
'main.user_profile_email_authenticate',
|
||||
@@ -140,7 +140,7 @@ def test_should_show_authenticate_after_email_change(
|
||||
client_request,
|
||||
):
|
||||
with client_request.session_transaction() as session:
|
||||
session['new-email'] = 'new_notify@notify.gov.uk'
|
||||
session['new-email'] = 'new_notify@notify.gsa.gov'
|
||||
|
||||
page = client_request.get('main.user_profile_email_authenticate')
|
||||
|
||||
@@ -154,7 +154,7 @@ def test_should_render_change_email_continue_after_authenticate_email(
|
||||
mock_send_change_email_verification,
|
||||
):
|
||||
with client_request.session_transaction() as session:
|
||||
session['new-email'] = 'new_notify@notify.gov.uk'
|
||||
session['new-email'] = 'new_notify@notify.gsa.gov'
|
||||
page = client_request.post(
|
||||
'main.user_profile_email_authenticate',
|
||||
_data={'password': '12345'},
|
||||
@@ -170,7 +170,7 @@ def test_should_redirect_to_user_profile_when_user_confirms_email_link(
|
||||
mock_update_user_attribute,
|
||||
):
|
||||
|
||||
token = generate_token(payload=json.dumps({'user_id': api_user_active['id'], 'email': 'new_email@gov.uk'}),
|
||||
token = generate_token(payload=json.dumps({'user_id': api_user_active['id'], 'email': 'new_email@gsa.gov'}),
|
||||
secret=notify_admin.config['SECRET_KEY'], salt=notify_admin.config['DANGEROUS_SALT'])
|
||||
client_request.get_url(
|
||||
url_for_endpoint_with_token(
|
||||
|
||||
Reference in New Issue
Block a user