mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Remove temporary raw_response argument
We added a new argument to `client_request.get` and `client_request.post` to specify that it should return a raw `Response` object rather than an instance of `BeautifulSoup`. This is useful because sometimes we need to look at stuff like the response headers. However it turns out we already have a separate method for this, so rather than invent something new I think it’s better to stick with the thing we already have.
This commit is contained in:
@@ -693,11 +693,10 @@ def test_should_show_updates_for_one_job_as_json(
|
||||
mocker,
|
||||
fake_uuid,
|
||||
):
|
||||
response = client_request.get(
|
||||
response = client_request.get_response(
|
||||
'main.view_job_updates',
|
||||
service_id=service_one['id'],
|
||||
job_id=fake_uuid,
|
||||
_raw_response=True,
|
||||
)
|
||||
|
||||
content = json.loads(response.get_data(as_text=True))
|
||||
@@ -731,11 +730,10 @@ def test_should_show_updates_for_scheduled_job_as_json(
|
||||
processing_started='2016-06-01T15:00:00+00:00',
|
||||
)})
|
||||
|
||||
response = client_request.get(
|
||||
response = client_request.get_response(
|
||||
'main.view_job_updates',
|
||||
service_id=service_one['id'],
|
||||
job_id=fake_uuid,
|
||||
_raw_response=True,
|
||||
)
|
||||
|
||||
content = response.json
|
||||
|
||||
Reference in New Issue
Block a user