mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 02:23:19 -04:00
Reduce indentation by combining with statements
This commit is contained in:
@@ -65,8 +65,7 @@ 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',
|
||||||
|
|||||||
Reference in New Issue
Block a user