Change label to exclude the type of message being sent.

Fix send email to self, it was always using mobile number to send mesasge. This fixes that.
This commit is contained in:
Rebecca Law
2016-03-02 17:02:41 +00:00
parent f0e0006a7c
commit 789264a863
4 changed files with 47 additions and 5 deletions

View File

@@ -141,6 +141,17 @@ def mock_get_service_template(mocker):
'app.notifications_api_client.get_service_template', side_effect=_create)
@pytest.fixture(scope='function')
def mock_get_service_email_template(mocker):
def _create(service_id, template_id):
template = template_json(
template_id, "Two week reminder", "email", "Your vehicle tax is about to expire", service_id)
return {'data': template}
return mocker.patch(
'app.notifications_api_client.get_service_template', side_effect=_create)
@pytest.fixture(scope='function')
def mock_create_service_template(mocker):
def _create(name, type_, content, service):