- Adding test where post_notification can't send to a member outside of the team or whitelist.

- Updating some tests to be pytest4 compliant.
This commit is contained in:
Rebecca Law
2019-06-11 16:45:35 +01:00
parent d19dbe5b61
commit 1f9aade749
5 changed files with 102 additions and 107 deletions

View File

@@ -176,6 +176,7 @@ def create_template(
archived=False,
folder=None,
postage=None,
process_type='normal',
):
data = {
'name': template_name or '{} Template Name'.format(template_type),
@@ -185,7 +186,8 @@ def create_template(
'created_by': service.created_by,
'reply_to': reply_to,
'hidden': hidden,
'folder': folder
'folder': folder,
'process_type': process_type
}
if template_type == LETTER_TYPE:
data["postage"] = postage or "second"