mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 11:49:49 -04:00
Fixed admin_request bug
This commit is contained in:
@@ -1051,11 +1051,15 @@ def admin_request(client):
|
|||||||
data=json.dumps(_data),
|
data=json.dumps(_data),
|
||||||
headers=[('Content-Type', 'application/json'), create_authorization_header()]
|
headers=[('Content-Type', 'application/json'), create_authorization_header()]
|
||||||
)
|
)
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
json_resp = json.loads(resp.get_data(as_text=True))
|
json_resp = json.loads(resp.get_data(as_text=True))
|
||||||
assert resp.status_code == _expected_status, json_resp
|
assert resp.status_code == _expected_status, json_resp
|
||||||
=======
|
=======
|
||||||
if resp.get_data:
|
if resp.get_data:
|
||||||
|
=======
|
||||||
|
if resp.get_data():
|
||||||
|
>>>>>>> Fixed admin_request bug
|
||||||
json_resp = json.loads(resp.get_data(as_text=True))
|
json_resp = json.loads(resp.get_data(as_text=True))
|
||||||
else:
|
else:
|
||||||
json_resp = None
|
json_resp = None
|
||||||
|
|||||||
Reference in New Issue
Block a user