Initialise clients outside the app

This avoids the annoying problem where you can’t import a client unless
the app has already been initialised.
This commit is contained in:
Chris Hill-Scott
2018-10-30 14:59:24 +00:00
parent 2bf2103cce
commit 9e798506c5
21 changed files with 77 additions and 41 deletions
@@ -50,3 +50,6 @@ class EmailBrandingClient(NotifyAdminAPIClient):
"brand_type": brand_type
}
return self.post(url="/email-branding/{}".format(branding_id), data=data)
email_branding_client = EmailBrandingClient()