Reduce indentation by combining with statements

This commit is contained in:
Chris Hill-Scott
2016-07-19 12:47:16 +01:00
parent 86a4daa4e8
commit 52d5841bbe
+1 -2
View File
@@ -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',