mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
Refactor conftest
This commit is contained in:
@@ -1051,8 +1051,16 @@ 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
|
||||||
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:
|
||||||
|
json_resp = json.loads(resp.get_data(as_text=True))
|
||||||
|
else:
|
||||||
|
json_resp = None
|
||||||
|
assert resp.status_code == _expected_status
|
||||||
|
>>>>>>> Refactor conftest
|
||||||
return json_resp
|
return json_resp
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user