From 17c6446b855b230115678385faaa2592898fe694 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 30 Jan 2019 13:45:05 +0000 Subject: [PATCH] Organise client initialisation - groups them into sensible chunks - alphabetises them --- app/__init__.py | 55 ++++++++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 0ace264af..8f45d5b1d 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -109,33 +109,40 @@ def create_app(application): init_app(application) for client in ( - antivirus_client, - statsd_client, - zendesk_client, + + # Gubbins csrf, - request_helper, - service_api_client, - user_api_client, - api_key_api_client, - job_api_client, - notification_api_client, - status_api_client, - invite_api_client, - org_invite_api_client, - template_statistics_client, - events_api_client, - provider_client, - email_branding_client, - letter_branding_client, - organisations_client, - letter_jobs_client, - inbound_number_client, - billing_api_client, - complaint_api_client, - platform_stats_api_client, - template_folder_api_client, login_manager, proxy_fix, + request_helper, + + # Internal API clients + antivirus_client, + api_key_api_client, + billing_api_client, + complaint_api_client, + email_branding_client, + events_api_client, + inbound_number_client, + invite_api_client, + job_api_client, + letter_branding_client, + letter_jobs_client, + notification_api_client, + org_invite_api_client, + organisations_client, + platform_stats_api_client, + provider_client, + service_api_client, + status_api_client, + template_folder_api_client, + template_statistics_client, + user_api_client, + + # External API clients + statsd_client, + zendesk_client, + ): client.init_app(application)