mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
New columns for email branding
Added banner_colour, single_id_colour and domain to email branding view. Now able to set the fields. However, the new fields are not being used yet.
This commit is contained in:
@@ -2493,7 +2493,10 @@ def mock_get_email_branding(mocker, fake_uuid):
|
||||
'name': 'Organisation name',
|
||||
'text': 'Organisation text',
|
||||
'id': fake_uuid,
|
||||
'colour': '#f00'
|
||||
'colour': '#f00',
|
||||
'banner_colour': '#f11',
|
||||
'single_id_colour': '#f22',
|
||||
'domain': 'sample.com',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2523,7 +2526,7 @@ def mock_get_email_branding_without_brand_text(mocker, fake_uuid):
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_create_email_branding(mocker):
|
||||
def _create_email_branding(logo, name, text, colour):
|
||||
def _create_email_branding(logo, name, text, colour, banner_colour, single_id_colour, domain):
|
||||
return
|
||||
|
||||
return mocker.patch(
|
||||
@@ -2533,7 +2536,7 @@ def mock_create_email_branding(mocker):
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_update_email_branding(mocker):
|
||||
def _update_email_branding(branding_id, logo, name, text, colour):
|
||||
def _update_email_branding(branding_id, logo, name, text, colour, banner_colour, single_id_colour, domain):
|
||||
return
|
||||
|
||||
return mocker.patch(
|
||||
|
||||
Reference in New Issue
Block a user