diff --git a/app/create_app.py b/app/create_app.py index c109cbb3..536598b6 100644 --- a/app/create_app.py +++ b/app/create_app.py @@ -108,9 +108,9 @@ def inject_global_constants(): return dict( stage="beta", service_meta_author="Department for Levelling up Housing and Communities", - toggle_dict={feature.name: feature.is_enabled() for feature in toggle_client.list()} - if toggle_client - else {}, + toggle_dict=( + {feature.name: feature.is_enabled() for feature in toggle_client.list()} if toggle_client else {} + ), ) @flask_app.context_processor diff --git a/app/default/application_routes.py b/app/default/application_routes.py index a10c81ac..4a0b6496 100644 --- a/app/default/application_routes.py +++ b/app/default/application_routes.py @@ -186,7 +186,10 @@ def tasklist(application_id): # note that individual section feedback COULD be independent of round feedback survey. # which is why this is not under a conditional round_data.feedback_survey_config. if round_data.feedback_survey_config.has_section_feedback: - (current_feedback_list, existing_feedback_map,) = get_section_feedback_data( + ( + current_feedback_list, + existing_feedback_map, + ) = get_section_feedback_data( application, section_display_config, ) diff --git a/tests/test_dashboard.py b/tests/test_dashboard.py index a3c33ef4..f929c24c 100644 --- a/tests/test_dashboard.py +++ b/tests/test_dashboard.py @@ -74,8 +74,8 @@ def test_dashboard_route_search_call( expected_search_params, ): request_mock = mocker.patch("app.default.account_routes.request") - request_mock.args.get = ( - lambda key, default: fund_short_name if key == "fund" else (round_short_name if key == "round" else default) + request_mock.args.get = lambda key, default: ( + fund_short_name if key == "fund" else (round_short_name if key == "round" else default) ) get_apps_mock = mocker.patch( "app.default.account_routes.search_applications", diff --git a/tests/test_tasks.py b/tests/test_tasks.py index 6770b5d6..fb710b38 100644 --- a/tests/test_tasks.py +++ b/tests/test_tasks.py @@ -86,8 +86,7 @@ def test_find_missing_trans(tmpdir, capsys): stdoutput = capsys.readouterr().out assert ( - stdoutput - == f"Missing translations in {f.strpath}:\n A missing translation\n " + stdoutput == f"Missing translations in {f.strpath}:\n A missing translation\n " " Another missing translation\n A third missing translation, that" " spans multiple lines. We want to capture all of its content.\n " " A fourth missing translation, that spans multiple lines. We"