Pass service domain to api when adding a new service

We need to pass the domain to api when adding a service so that api can
link the domain of the service with a letter brand.
This commit is contained in:
Katie Smith
2019-02-12 14:02:21 +00:00
parent 1cb1ce310a
commit 31a1c1ca51
6 changed files with 21 additions and 12 deletions

View File

@@ -625,6 +625,7 @@ def mock_create_service(mocker):
restricted,
user_id,
email_from,
service_domain,
):
service = service_json(
101, service_name, [user_id], message_limit=message_limit, restricted=restricted, email_from=email_from)
@@ -643,6 +644,7 @@ def mock_create_duplicate_service(mocker):
restricted,
user_id,
email_from,
service_domain,
):
json_mock = Mock(return_value={'message': {'name': ["Duplicate service name '{}'".format(service_name)]}})
resp_mock = Mock(status_code=400, json=json_mock)