Add '/letter-branding' page to show all letter brands

This is a platform admin page which lists all letter brands and their
domain. Once the page to edit a letter brand has been created, each
brand will link to its edit page, but for now this is just a list of
brand names and domains.
This commit is contained in:
Katie Smith
2019-02-07 16:16:22 +00:00
parent f87f89bfd2
commit f78b3bff81
9 changed files with 104 additions and 14 deletions

View File

@@ -40,6 +40,7 @@ def test_create_letter_branding(mocker):
new_branding = {'filename': 'uuid-test', 'name': 'my letters', 'domain': 'example.com'}
mock_post = mocker.patch('app.notify_client.letter_branding_client.LetterBrandingClient.post')
mock_redis_delete = mocker.patch('app.notify_client.RedisClient.delete')
LetterBrandingClient().create_letter_branding(
filename=new_branding['filename'], name=new_branding['name'], domain=new_branding['domain']
@@ -48,3 +49,5 @@ def test_create_letter_branding(mocker):
url='/letter-branding',
data=new_branding
)
mock_redis_delete.assert_called_once_with('letter_branding')