mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Test fix.
This commit is contained in:
@@ -203,12 +203,12 @@ def test_put_user_not_exists(notify_api, notify_db, notify_db_session, sample_us
|
|||||||
new_email = 'new@digital.cabinet-office.gov.uk'
|
new_email = 'new@digital.cabinet-office.gov.uk'
|
||||||
data = {'email_address': new_email}
|
data = {'email_address': new_email}
|
||||||
auth_header = create_authorization_header(service_id=sample_admin_service_id,
|
auth_header = create_authorization_header(service_id=sample_admin_service_id,
|
||||||
path=url_for('user.update_user', user_id="123"),
|
path=url_for('user.update_user', user_id="9999"),
|
||||||
method='PUT',
|
method='PUT',
|
||||||
request_body=json.dumps(data))
|
request_body=json.dumps(data))
|
||||||
headers = [('Content-Type', 'application/json'), auth_header]
|
headers = [('Content-Type', 'application/json'), auth_header]
|
||||||
resp = client.put(
|
resp = client.put(
|
||||||
url_for('user.update_user', user_id="123"),
|
url_for('user.update_user', user_id="9999"),
|
||||||
data=json.dumps(data),
|
data=json.dumps(data),
|
||||||
headers=headers)
|
headers=headers)
|
||||||
assert resp.status_code == 404
|
assert resp.status_code == 404
|
||||||
|
|||||||
Reference in New Issue
Block a user