Stop email preview showing brand name

This is a leftover from when email brands didn't
have a 'text' field.

It also adds some tests to check the brand name
is displaying correctly.
This commit is contained in:
Tom Byers
2018-08-14 17:20:31 +01:00
parent 8ba8606963
commit 6b0d79ad72
3 changed files with 45 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ def email_template():
brand_banner = False
else:
email_branding = email_branding_client.get_email_branding(branding_style)['email_branding']
brand_name = email_branding['name']
brand_name = email_branding['text']
brand_colour = email_branding['colour']
brand_logo = 'https://{}/{}'.format(get_cdn_domain(), email_branding['logo'])
govuk_banner = branding_type in ['govuk', 'both']