mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
- 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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user