diff --git a/app/main/views/email_branding.py b/app/main/views/email_branding.py index 30201d0b8..787b59f50 100644 --- a/app/main/views/email_branding.py +++ b/app/main/views/email_branding.py @@ -91,7 +91,7 @@ def update_email_branding(branding_id, logo=None): @login_required @user_is_platform_admin def create_email_branding(logo=None): - form = ServiceUpdateEmailBranding() + form = ServiceUpdateEmailBranding(brand_type='govuk') if form.validate_on_submit(): if form.file.data: diff --git a/tests/app/main/views/test_email_branding.py b/tests/app/main/views/test_email_branding.py index 9e22221a9..889399428 100644 --- a/tests/app/main/views/test_email_branding.py +++ b/tests/app/main/views/test_email_branding.py @@ -205,9 +205,7 @@ def test_deletes_previous_temp_logo_after_uploading_logo( logged_in_platform_admin_client.post( url_for('main.create_email_branding', logo=temp_old_filename, branding_id=fake_uuid), - data={'file': (BytesIO(''.encode('utf-8')), 'test.png'), - 'brand_type': 'govuk' - }, + data={'file': (BytesIO(''.encode('utf-8')), 'test.png')}, content_type='multipart/form-data' ) @@ -284,8 +282,7 @@ def test_temp_logo_is_shown_after_uploading_logo( response = logged_in_platform_admin_client.post( url_for('main.create_email_branding'), - data={'file': (BytesIO(''.encode('utf-8')), 'test.png'), - 'brand_type': 'govuk'}, + data={'file': (BytesIO(''.encode('utf-8')), 'test.png')}, content_type='multipart/form-data', follow_redirects=True ) @@ -315,7 +312,6 @@ def test_logo_persisted_when_organisation_saved( resp = logged_in_platform_admin_client.post( url_for('.create_email_branding', logo=temp_filename), - data={'brand_type': 'govuk'}, content_type='multipart/form-data' ) assert resp.status_code == 302