mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Add a page to set organisation and branding option
Platform admin only. Adds radio buttons to choose one of: - three hard-coded branding options - organisations from a list provided by the API
This commit is contained in:
committed by
Leo Hemsted
parent
20c39d24b7
commit
6b5e64479a
@@ -1133,3 +1133,20 @@ def mock_events(mocker):
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_send_already_registered_email(mocker):
|
||||
return mocker.patch('app.user_api_client.send_already_registered_email')
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_organisations(mocker):
|
||||
def _get_organisations():
|
||||
return [
|
||||
{
|
||||
'logo': 'example.png',
|
||||
'name': 'Organisation name',
|
||||
'id': 'organisation-name',
|
||||
'colour': '#f00'
|
||||
}
|
||||
]
|
||||
|
||||
return mocker.patch(
|
||||
'app.organisations_client.get_organisations', side_effect=_get_organisations
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user