diff --git a/app/dao/services_dao.py b/app/dao/services_dao.py index 1e36ace594..281bfa6cf9 100644 --- a/app/dao/services_dao.py +++ b/app/dao/services_dao.py @@ -313,8 +313,6 @@ def dao_create_service( if organisation: service.organisation_id = organisation.id service.organisation_type = organisation.organisation_type - if organisation.email_branding: - service.email_branding = organisation.email_branding if organisation.letter_branding and not service.letter_branding: service.letter_branding = organisation.letter_branding diff --git a/tests/app/service/test_rest.py b/tests/app/service/test_rest.py index d7eae2d564..342943b433 100644 --- a/tests/app/service/test_rest.py +++ b/tests/app/service/test_rest.py @@ -458,7 +458,7 @@ def test_create_service_with_domain_sets_organisation(admin_request, sample_user assert json_resp["data"]["organisation"] is None -def test_create_service_inherits_branding_from_organisation(admin_request, sample_user, mocker): +def test_create_service_doesnt_inherit_branding_from_organisation(admin_request, sample_user, mocker): org = create_organisation() email_branding = create_email_branding() org.email_branding = email_branding @@ -482,8 +482,7 @@ def test_create_service_inherits_branding_from_organisation(admin_request, sampl _expected_status=201, ) - assert json_resp["data"]["email_branding"] == str(email_branding.id) - assert json_resp["data"]["letter_branding"] == str(letter_branding.id) + assert json_resp["data"]["email_branding"] is None def test_should_not_create_service_with_missing_user_id_field(notify_api, fake_uuid):