Make email branding settings a table

So that it matches the other settings on this page
This commit is contained in:
Chris Hill-Scott
2016-08-24 09:34:14 +01:00
parent e234ed9741
commit 58b2a8a825
5 changed files with 133 additions and 72 deletions

View File

@@ -1144,3 +1144,20 @@ def mock_get_organisations(mocker):
return mocker.patch(
'app.organisations_client.get_organisations', side_effect=_get_organisations
)
@pytest.fixture(scope='function')
def mock_get_organisation(mocker):
def _get_organisation(id):
return {
'organisation': {
'logo': 'example.png',
'name': 'Organisation name',
'id': 'organisation-id',
'colour': '#f00'
}
}
return mocker.patch(
'app.organisations_client.get_organisation', side_effect=_get_organisation
)