Allow setting reply_to when creating a test template

This commit is contained in:
Alexey Bezhan
2017-12-15 17:08:01 +00:00
parent da247680a4
commit 8afe9aced7

View File

@@ -123,7 +123,8 @@ def create_template(
template_name=None,
subject='Template subject',
content='Dear Sir/Madam, Hello. Yours Truly, The Government.',
template_id=None
template_id=None,
reply_to=None
):
data = {
'name': template_name or '{} Template Name'.format(template_type),
@@ -131,6 +132,7 @@ def create_template(
'content': content,
'service': service,
'created_by': service.created_by,
'reply_to': reply_to,
}
if template_type != SMS_TYPE:
data['subject'] = subject