mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 18:22:37 -04:00
Reduce indentation by combining with statements
This commit is contained in:
@@ -65,15 +65,14 @@ def test_should_show_page_for_one_job(
|
|||||||
expected_api_call
|
expected_api_call
|
||||||
):
|
):
|
||||||
file_name = mock_get_job(service_one['id'], fake_uuid)['data']['original_file_name']
|
file_name = mock_get_job(service_one['id'], fake_uuid)['data']['original_file_name']
|
||||||
with app_.test_request_context():
|
with app_.test_request_context(), app_.test_client() as client:
|
||||||
with app_.test_client() as client:
|
client.login(active_user_with_permissions, mocker, service_one)
|
||||||
client.login(active_user_with_permissions, mocker, service_one)
|
response = client.get(url_for(
|
||||||
response = client.get(url_for(
|
'main.view_job',
|
||||||
'main.view_job',
|
service_id=service_one['id'],
|
||||||
service_id=service_one['id'],
|
job_id=fake_uuid,
|
||||||
job_id=fake_uuid,
|
status=status_argument
|
||||||
status=status_argument
|
))
|
||||||
))
|
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||||
|
|||||||
Reference in New Issue
Block a user